Skip to content

Commit c719f1b

Browse files
Commit rauchg#7: Add chat message socket listener in server.js
1 parent 48c1288 commit c719f1b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server.js

+5
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,9 @@ listener.sockets.on('connection', function (socket) {
8686
'deviceLocationData': global.deviceLocationData
8787
});
8888
});
89+
90+
socket.on('chat message', function(msg){
91+
socket.emit('chat message', msg);
92+
});
93+
8994
});

0 commit comments

Comments
 (0)