pgriess / node-websocket-client

A Web Socket client for NodeJS
BSD 3-Clause "New" or "Revised" License
150 stars 68 forks source link

Doesn't work with Node 0.6 #18

Open tristanz opened 13 years ago

tristanz commented 13 years ago

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

alaingilbert commented 13 years ago

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)