Skip to content

Commit

Permalink
user query test
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavprat committed Nov 10, 2019
1 parent a8ec0e4 commit 251957e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ app.post('/hook', function(req, res){
io.on('connection', function(client){

client.on('register', function(registerMsg){
let userId = "User " + registerMsg.userId;
let token = client.handshake.query.user;
let userId = "Anonymous " + token + ' ' +registerMsg.userId;
let chatId = registerMsg.chatId;
let messageReceived = false;
console.log("useId " + userId + " connected to chatId " + chatId);
Expand Down

0 comments on commit 251957e

Please sign in to comment.