How to send messages to other users on the same server with Web Socket rooms with JavaScript
I have an online multiplayer checkers game project, I need a way to send messages of the last move made by an opponent to the other player. So I did some research and discovered that it is possible to create rooms on the server with JavaScript between two visitors on the same server. The players are technically viewing the same page but I mirror the move made by one player on the opponent pieces being viewed by the other player. How can I achieve this with JavaScript?
Right now the server am testing on is a development server on localhost.