node-websocket-client icon indicating copy to clipboard operation
node-websocket-client copied to clipboard

Doesn't work with Node 0.6

Open tristanz opened this issue 14 years ago • 1 comments

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

tristanz avatar Nov 10 '11 03:11 tristanz

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)

alaingilbert avatar Nov 16 '11 05:11 alaingilbert