Skip to content

Commit

Permalink
Commit rauchg#7: Add chat message socket listener in server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSachinSBhat committed Feb 7, 2017
1 parent 48c1288 commit c719f1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,9 @@ listener.sockets.on('connection', function (socket) {
'deviceLocationData': global.deviceLocationData
});
});

socket.on('chat message', function(msg){
socket.emit('chat message', msg);
});

});

0 comments on commit c719f1b

Please sign in to comment.