Update index.js
Updated console log to show the JWT
This commit is contained in:
parent
eae6966dfd
commit
37bb5bbc09
@ -13,7 +13,7 @@ io
|
|||||||
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){
|
||||||
console.log('connected & authenticated: ' + socket.decoded_token.toString());
|
console.log('connected & authenticated: ' + JSON.stringify(socket.decoded_token));
|
||||||
socket.on('chat message', function(msg){
|
socket.on('chat message', function(msg){
|
||||||
debugger;
|
debugger;
|
||||||
io.emit('chat message', msg);
|
io.emit('chat message', msg);
|
||||||
|
Reference in New Issue
Block a user