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,
On socket.io >=1.0, after the connect event has triggered:
var socket = io('localhost'); var id = socket.io.engine.id