socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Can i use socket.io client version 0.6.1 with Socket.io Server Version

Open rahul23134 opened this issue 14 years ago • 2 comments

Can i use socket.io client version 0.6.1 with Socket.io Server Version 0.8.7?

My main issue is i used the https://github.com/saschagehlich/node-socket.io-client with socket.io 0.6 version , now i upgraded server with 0.8.7 , but i feel that node-socket.io-client is not working with socket.io 0.8.7.

as it is said in https://github.com/saschagehlich/node-socket.io-client issues that library is outdated , which library i can use now .

rahul23134 avatar Dec 19 '11 05:12 rahul23134

Use official client: https://github.com/LearnBoost/socket.io-client with the same version(just get 'master' HEAD revision)

cris avatar Dec 19 '11 10:12 cris

Indeed, you can use the Socket.IO client directly in Node.js.

npm install socket.io-client

var io = require('socket.io-client');

io.connect('server');

Closing this as it's clearly a question and not a bug.

3rd-Eden avatar Dec 29 '11 19:12 3rd-Eden