node-websocket-client
node-websocket-client copied to clipboard
Doesn't work with Node 0.6
This library seems broken with Node 0.6. The issue, I think, is that http.createClient is deprecated (it no longer is in the docs at least.) Switching the code over to use http.request seems to fix this issue. I've fixed this in socket.io-client here:
https://github.com/tristanz/socket.io-client
https://github.com/alaingilbert/node-websocket-client/commit/1e7d7a8b695aa6c086a1dfeb46b7158d9dc405f6
This fix the lib for v0.5 and v0.6 of nodejs. (backward compatible with v0.4)