Jeff Thompson | 287a318 | 2012-11-11 18:12:20 -0800 | [diff] [blame] | 1 | ws-ndn-js |
| 2 | ========= |
| 3 | |
| 4 | WebSocket proxy server between NDN javascript stack and ccnd |
| 5 | |
| 6 | This 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 | |
| 8 | To run the proxy, simply use the command 'node ws-ndn.js'. |
| 9 | |
| 10 | Acknowledgement: this code is extended from Junxiao's WebSocket proxy implementation (https://gist.github.com/3835425). |