I want to get session id of client in my socket.io client.
here is my socket.io client :
var socket = new io.Socket(config.host, {port: config.port,
Try this way.
var socket = io.connect('http://...'); console.log(socket.Socket.sessionid);