savinmax 5288282ae7
Some checks failed
CI / test (push) Successful in 12s
CI / lint (push) Failing after 10s
feat(example): add room support to browser chat client
Update example/index.html to allow users to specify a room via the UI:

- Add room name text input with '/' as default
- Add 'Join Room' button that (re)connects to the specified room
- Construct WebSocket URL using the room path (ws://host:port/room)
- Display connection status with current room name
- Derive initial room from browser URL hash (e.g., #/chat → /chat)
- Update URL hash on room change for shareable links
- Listen for hashchange events for URL-driven navigation
- Add Ctrl+Enter shortcut for sending messages
- Improve styling with flexbox layout for controls

Demo: open index.html#/chat in two tabs and index.html#/game in another.
Messages in /chat stay isolated from /game.

🤖 Assisted by the code-assist SOP
2026-06-13 13:35:26 +02:00
..