Real-Time Collaboration with Web Sockets
Version: JavaScript version: v8.9.4 Tested on MacOS / Windos OS
Install: npm install socket.io
Launch the server : node server.js
visit: http://localhost:3000/assignment3.html
Test:
NOTICE: Do not click both ready buttons on same webpage or you can not control paddle separately
- Open one webpage and enter a player name by click ready button
- Open another webpage and enter another player name
- Player names will apear on top and socores will below the play names
- Use arrow keys to control the paddle on each page
- Click quit button and the game will be stoped
- You can open third page to watch the game