Socket.IO - ryantc94/Knights-of-Arthur GitHub Wiki
Socket.IO
https://socket.io/docs/emit-cheatsheet/
- Apparently Socket.IO emit automatically converts your object into json and back to object.
- socket.emit only emits to client ... socket.broadcast.emit send to all except sender...
Problem: emiting player entered room was only being sent to mobile socket, ohhhhh its sending back to the socket that gave the event (sent to server)... ahhh thats why....