Multiplayer real-time chess game uses node.js, React Web-Socket/ws, firebase, material-ui and react-beautiful-dnd.
you can visit the https://realtime-chess-24c56.firebaseapp.com/
I will explain how the system of the game works in order to understand the code. using UML charts.
This diagram shows the states of users and transitions between the states.
I translate the states diagram into sequence diagram this will give a better overview