Portable Raw Socket API for Firefox OS & Chrome Packaged Apps
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
jquery-2.0.3.min.js
manifest.json
manifest.webapp
netcat-bg.js
netcat.html
netcat.js
package.json
sawrocket.js
utf8.js

README.md

Saw Rocket

Raw Socket API 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