this

 io.on('connect', function () 
    {
    console.log(this.socket.sessionid);
    });