File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,38 +90,7 @@ $env:PORT=4000; node server.js
9090
9191---
9292
93- ## 6. Test Endpoints
94-
95- ### List Available Rooms
96-
97- The server provides a REST endpoint:
98-
99- ```
100- GET /list?game_id=<gameId>
101- ```
102-
103- Example:
104-
105- ```
106- http://localhost:3000/list?game_id=123
107- ```
108-
109- This returns a JSON list of available rooms for the given game ID.
110-
111- ### WebSocket Features
112-
113- Clients can connect via ** Socket.IO** to:
114-
115- - Open rooms (` open-room ` )
116- - Join rooms (` join-room ` )
117- - Leave rooms (` leave-room ` )
118- - Exchange WebRTC signals (` webrtc-signal ` )
119- - Send messages (` data-message ` , ` snapshot ` , ` input ` )
120- - Receive updates when users join/leave (` users-updated ` )
121-
122- ---
123-
124- ## 7. (Optional) Run in Background with PM2
93+ ## 6. (Optional) Run in Background with PM2
12594
12695For production, use ** PM2** to keep the server running in the background.
12796
You can’t perform that action at this time.
0 commit comments