The demo of websockets in both client and server side.
The project is built based on
- client side: next.js, tailwind css, react-color, socket.io-client
- server side: express, nodemon, socket.io
Following the guidance to run the project locally.
server side: /server
npm run server
client side: /client
npm run dev
open localhost:3000 to play
the original source: https://github.com/joschan21/canvas-websockets/tree/master