fix readme
This commit is contained in:
parent
7ea32e52cc
commit
e9b8ea4302
@ -60,9 +60,9 @@ io.use(socketioJwt.authorize({
|
|||||||
io.on('connection', function (socket) {
|
io.on('connection', function (socket) {
|
||||||
// in socket.io < 1.0
|
// in socket.io < 1.0
|
||||||
console.log('hello!', socket.handshake.decoded_token.name);
|
console.log('hello!', socket.handshake.decoded_token.name);
|
||||||
|
|
||||||
// in socket.io 1.0
|
// in socket.io 1.0
|
||||||
console.log('hello! ', socket.client.request.decoded_token.name);
|
console.log('hello! ', socket.decoded_token.name);
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user