Node.js and wss://

case nelson picture case nelson · May 16, 2010 · Viewed 11.3k times · Source

I'm looking to start using javascript on the server, most likely with node.js, as well as use websockets to communicate with clients. However, there doesn't seem to be a lot of information about encrypted websocket communication using TLS and the wss:// handler. In fact the only server that I've seen explicitly support wss:// is Kaazing.

This TODO is the only reference I've been able to find in the various node implementations. Am I missing something or are the websocket js servers not ready for encrypted communication yet?

Another option could be using something like lighttpd or apache to proxy to a node listener, has anyone had success there?

Answer

pors picture pors · Jan 10, 2012

TLS/SSL support works for this websocket implementation in Node.js, I just tested it: https://github.com/Worlize/WebSocket-Node/issues/29