How to use Socket.IO with ReactJS DnD?

Viewed 202

I am trying to create a board game using Socket.IO where each player's movements are immediately displayed on all other clients. I have used the React DnD(Drag and Drop) library to implement the dragging and dropping of board game pieces on my board, but I'm not sure how to implement the web socket part of the game where moves from each player are broadcasted to every other client.

Here is the url to the DnD library I used: https://react-dnd.github.io/react-dnd/about

0 Answers
Related