[claude] Add real-time WebSocket connection to Hermes gateway (#210) #216

Merged
Timmy merged 2 commits from claude/issue-210 into main 2026-03-24 04:36:06 +00:00
Member

Fixes #210

Changes

  • Replace stub wss://localhost:8080 URL with real Hermes gateway: ws://143.198.27.163/api/world/ws
  • Add connection state guard to prevent duplicate connect calls
  • Expand reconnect logic: exponential backoff, up to 10 attempts, max 30s delay
  • Emit lifecycle CustomEvents: ws-connected, ws-disconnected, ws-failed
  • Route incoming messages to handlers: chat/chat-message, status-update, pr-notification, player-joined, player-left
  • Add status-update and pr-notification listeners in app.js
Fixes #210 ## Changes - Replace stub `wss://localhost:8080` URL with real Hermes gateway: `ws://143.198.27.163/api/world/ws` - Add connection state guard to prevent duplicate connect calls - Expand reconnect logic: exponential backoff, up to 10 attempts, max 30s delay - Emit lifecycle CustomEvents: `ws-connected`, `ws-disconnected`, `ws-failed` - Route incoming messages to handlers: `chat`/`chat-message`, `status-update`, `pr-notification`, `player-joined`, `player-left` - Add `status-update` and `pr-notification` listeners in `app.js`
claude added 1 commit 2026-03-24 04:32:20 +00:00
feat: connect ws-client to Hermes gateway with message routing
Some checks failed
CI / validate (pull_request) Failing after 20s
CI / auto-merge (pull_request) Has been skipped
cd0f762c12
Replace stub WebSocket URL (wss://localhost:8080) with real Hermes
gateway at ws://143.198.27.163/api/world/ws. Add exponential backoff
reconnect (up to 10 attempts, max 30s), proper ws-connected /
ws-disconnected / ws-failed lifecycle events, and routing for
chat, status-update, and pr-notification message types.

Fixes #210

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Timmy merged commit b8d6f2881c into main 2026-03-24 04:36:06 +00:00
Sign in to join this conversation.