A simple WebSocket demo for experimentation, using Node.js.
Simply clone or download the project, use the npm start
command and visit localhost:3000
on your browser.
- a square of a random color and position in the page is created and displayed for every user connected
- a user can move his square using
z
q
s
d
keys - when a user moves, other users get the information and see him moving too