[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

2 Commits

Author SHA1 Message Date
Alexander Whitestone
d6d8b03f99 fix: use wss:// for Hermes gateway and add _destroyed flag to disconnect
Some checks failed
CI / validate (pull_request) Failing after 15s
CI / auto-merge (pull_request) Has been skipped
- Switch HERMES_WS_URL from ws:// to wss:// for encrypted transport
- Add _destroyed flag so disconnect() permanently stops reconnect loop
- Guard connect() and _scheduleReconnect() against _destroyed state
- Set this.connected = false in disconnect() for consistent state

Refs #210

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 00:35:51 -04:00
Alexander Whitestone
cd0f762c12 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
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>
2026-03-24 00:32:04 -04:00