diff --git a/README.md b/README.md index 86e8487..9f9696c 100644 --- a/README.md +++ b/README.md @@ -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); }) ```