2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

fix readme

This commit is contained in:
José F. Romaniello 2014-06-12 13:23:19 -03:00
parent 7ea32e52cc
commit e9b8ea4302

View File

@ -60,9 +60,9 @@ io.use(socketioJwt.authorize({
io.on('connection', function (socket) {
// 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);
console.log('hello! ', socket.decoded_token.name);
})
```