-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat system not working #5
Comments
It works fine by replacing the rooms logic with io.emit, but I'm wondering what's running on your example page then, if the source doesn't allow chatting at this moment. |
I just pushed a commit to fix it. Several commits ago, I had deleted some code, thinking it wasn't used anymore, but it was actually the code used to manage rooms, which the chat uses. I had forgotten about this and didn't take time to check. Now it should be fixed, it works on my side, if you can confirm to me it works for you I'll close the issue. Thanks for notifying me! |
Works great :) |
Hey,
Been having some issues with chat messages not being sent through by the server.
So this bit
rooms.forEach(function(room){
socket.broadcast.to(room).emit('chat', {id:playerID,txt:txt});
});
doesn't seem to work for me.
Any ideas?
The text was updated successfully, but these errors were encountered: