this.gameInfra = io.of('/game_infra');
this.gameInfra.on('connection', (socket) => {
socket.on('join_room', (room) => {
var comSocket = self.chatCom.connected[socket.id];
comSocket.join(room.name);
comSocket.room = room.name;
});
)};
this.chatCom = io.of('/chat_com');
this.chatCom.on('connection', (socket) => {
socket.on('message', (message) => {
message.username = self.gameInfra.connected[socket.id].username;
socket.in(socket.room).broadcast.send(JSON.stringify(message));
});
});
var comSocket = self.chatCom.connected[socket.id];
is undefined in newer versions.Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.