Hello,
We used node.js to build a web service that supports SSL with SNI. We are using self-signed SSL certs for testing. We can access HTTPS with no problems from browsers and node.js clients.
We have a problem trying to connect a node.js client using socket.io-client v0.9.16 using WSS (it works perfectly without SSL):
Socket.IO Error: "Error: socket hang up
at SecurePair.error (tls.js:948:15)
at EncryptedStream.CryptoStream._done (tls.js:432:17)
at EncryptedStream.CryptoStream._pull (tls.js:577:12)
at SecurePair.cycle (tls.js:866:20)
at EncryptedStream.CryptoStream.end (tls.js:405:13)
at Socket.onend (stream.js:66:10)
at Socket.EventEmitter.emit (events.js:126:20)\n at TCP.onread (net.js:417:51)"
On the node.js client and server we are using the same version of node.js v0.8.14
Any thoughts?
Does anybody know for a fact that socket.io-client can be used with SSL and SNI ?
Thanks!