Skip to content

Conversation

@robbie-anam
Copy link
Contributor

@robbie-anam robbie-anam commented Jul 18, 2025

Note: Other PRs have been merged into Alpha that comprised a subset of this functionality.

This PR switches the signalling method to use Ably rather than a direct websocket connection to our datacentre.

This gives us greater reliability, potential connection speed increases, and http fallback in cases where web-sockets are inaccessible.

Signalling methods follow the existing patterns and event emitters, tokens to connect to Ably are passed from the Anam backend.

robbie-anam and others added 6 commits July 16, 2025 09:17
- Replace custom WebSocket SignallingClient with Ably Realtime implementation
- Remove heartbeat logic as Ably handles connection health automatically
- Update ClientConfigResponse to use ablyToken and ablyChannel
- Hardcode Ably channel rewind parameter to 100 messages
- Defer connection initialization to connect() method for better resource management
- Add proper error handling for uninitialized connections
- Remove message buffering in favor of explicit connection errors
- Add Ably SDK v2.9.0 dependency

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@robbie-anam robbie-anam requested review from Smidge and ao-anam July 18, 2025 23:39
ao-anam
ao-anam previously approved these changes Jul 21, 2025
@ao-anam ao-anam dismissed their stale review July 21, 2025 14:16

The merge-base changed after approval.

@ao-anam ao-anam merged commit 76fd69a into alpha Jul 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants