Raw Socket API SHIM

npm install sawrocket
4 downloads in the last week
5 downloads in the last month

Saw Rocket

Raw Socket API SHIM for Chrome Packaged Apps and Mozilla Open Web Apps (Firefox OS).

Current limitations

  • TCP client sockets only
  • Binary data only


Copy sawrocket.js to your project and start using TCPSocket.

If you need to convert to strings, copy utf8.js and use UTF8ArrToStr and strToUTF8Arr. They've been stolen from the Mozilla Developer Docs.


A sample netcat demo app is included. Use:

  • manifest.json for Chrome
  • manifest.webapp for Firefox OS
npm loves you