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

Update index.js

Updated console log to show the JWT
This commit is contained in:
Annyv2 2015-11-23 20:17:16 -04:30
parent eae6966dfd
commit 37bb5bbc09

View File

@ -13,7 +13,7 @@ io
timeout: 15000 // 15 seconds to send the authentication message
}))
.on('authenticated', function(socket){
console.log('connected & authenticated: ' + socket.decoded_token.toString());
console.log('connected & authenticated: ' + JSON.stringify(socket.decoded_token));
socket.on('chat message', function(msg){
debugger;
io.emit('chat message', msg);