I am developing a WebGL multiplayer game. I try to implement multiplayer by socket.io, with express in node.js. When the user presses any key, the key event is first sent to server then the server should broadcast using socket to all the clients, like when the user presses key, the movement of the character should be visible to all of the client's browsers, but however right now with my code only the browser in which the client presses key the movement of character occurs.
I have provided my code here
https://github.com/kshitizrimal/helpGl
Please help me with this situation