blob: eb0cdc0ba2064be82f16455af5e1dfb42123385e [file] [log] [blame] [view]
Jeff Thompson287a3182012-11-11 18:12:20 -08001ws-ndn-js
2=========
3
4WebSocket proxy server between NDN javascript stack and ccnd
5
6This proxy runs on top of 'node.js'. 'ws' package is required. It listens for WebSocket connection request on port number 9696. Once it receives a incoming connection, it issues a TCP connection to the specified 'ccnd' router (port number 9695). It then translates packet frames from WebSocket to pure TCP byte streams and vice versa.
7
8To run the proxy, simply use the command 'node ws-ndn.js'.
9
10Acknowledgement: this code is extended from Junxiao's WebSocket proxy implementation (https://gist.github.com/3835425).