diff --git a/server.js b/server.js index b38f1c60..91a18832 100644 --- a/server.js +++ b/server.js @@ -86,4 +86,9 @@ listener.sockets.on('connection', function (socket) { 'deviceLocationData': global.deviceLocationData }); }); + + socket.on('chat message', function(msg){ + socket.emit('chat message', msg); + }); + });