update readme and fix #11

This commit is contained in:
José F. Romaniello 2014-06-09 10:51:40 -03:00
parent 80aa8dc023
commit f072f91120

View File

@ -56,7 +56,11 @@ io.use(socketioJwt.authorize({
///////////////////////////////
io.on('connection', function (socket) {
console.log('hello! ', socket.handshake.decoded_token.name);
// in socket.io < 1.0
console.log('hello!', socket.handshake.decoded_token.name);
// in socket.io 1.0
console.log('hello! ', socket.client.request.decoded_token.name);
})
```