mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
missing parenthesis closes #7
This commit is contained in:
parent
c526326a1e
commit
0577d07b47
@ -14,7 +14,7 @@ io.sockets
|
|||||||
.on('connection', socketioJwt.authorize({
|
.on('connection', socketioJwt.authorize({
|
||||||
secret: 'your secret or public key',
|
secret: 'your secret or public key',
|
||||||
timeout: 15000 // 15 seconds to send the authentication message
|
timeout: 15000 // 15 seconds to send the authentication message
|
||||||
}).on('authenticated', function(socket) {
|
})).on('authenticated', function(socket) {
|
||||||
//this socket is authenticated, we are good to handle more events from it.
|
//this socket is authenticated, we are good to handle more events from it.
|
||||||
console.log('hello! ' + socket.decoded_token.name);
|
console.log('hello! ' + socket.decoded_token.name);
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user