June 2015
Beginner
354 pages
8h 23m
English
Carry out the following steps:
game.js file in the server folder for the server-side logic.user.socket.on("message", function(message){
console.log("Receive message from " + user.id + ": " + message);
// send to all users in room.
var msg = "User " + user.id + " said: " + message;
room.sendAll(msg);
});client folder and open the index.html file.<ul id="chat-history"></ul>
Read now
Unlock full access