How to make Java 6, which fails SSL connection with “SSL peer shut down incorrectly”, succeed like Java 7?

Bruno’s answer was the correct one in the end. This is most easily controlled by the https.protocols system property. This is how you are able to control what the factory method returns. Set to “TLSv1” for example. It seems that in the debug log for Java 6 the request is send in SSLv2 format. main, … Read more

Send custom data along with handshakeData in socket.io?

As a lot of comments have pointed out below the Socket.IO API changed in their 1.0 release. Authentication should now be done via a middleware function, see ‘Authentication differences’ @ http://socket.io/docs/migrating-from-0-9/#authentication-differences. I’ll include my orginal answer for anyone stuck on <1.0 as the old docs seem to be gone. 1.0 and later: Client Side: //The … Read more