https://github.com/astro/sawrocket
Portable Raw Socket API for Firefox OS & Chrome Packaged Apps
https://github.com/astro/sawrocket
Last synced: 10 months ago
JSON representation
Portable Raw Socket API for Firefox OS & Chrome Packaged Apps
- Host: GitHub
- URL: https://github.com/astro/sawrocket
- Owner: astro
- License: mit
- Created: 2013-10-16T08:00:18.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-25T03:20:59.000Z (over 11 years ago)
- Last Synced: 2025-08-17T04:51:48.870Z (10 months ago)
- Language: JavaScript
- Size: 223 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Saw Rocket
[Raw Socket API](http://www.w3.org/TR/raw-sockets/#methods-1) SHIM for
Chrome Packaged Apps and Mozilla Open Web Apps (Firefox OS).
## Current limitations
* TCP client sockets only
* UDP client sockets in chrome only
* Binary data only
* …
## Usage
Copy `sawrocket.js` to your project and start using `TCPSocket` or `UDPSocket`.
If you need to convert to strings, copy `utf8.js` and use
`UTF8ArrToStr` and `strToUTF8Arr`. They've been stolen from the
Mozilla Developer Docs.
## Manifests?
A sample **netcat** demo app is included. Use:
* `manifest.json` for Chrome
* `manifest.webapp` for Firefox OS