Thursday 20 April 2017

Broadcasting to users in same chat room generates an error

When broadcasting to others, this prints to the command Prompt: socket.broadcast.to(client.room).emit("updateToOthers", "The owner (" +people[client.id].name + ") removed the room.");

TypeError: Cannot read property 'to' of undefined

Am I broadcasting the wrong way?



via JonasSH

No comments:

Post a Comment