Repository navigation
replace host options with endpoint client option - #462
Merged
Merged
Conversation
maratal
self-requested a review
October 12, 2026 03:30
Version 2 adopts the endpoint routing model from the spec (REC1/REC2),
so clients connect to *.realtime.ably.net, with fallbacks on
*.fallback.ably-realtime.com, instead of the rest/realtime.ably.io
domains.
- Add the :endpoint option (default 'main'). It accepts a routing
policy name ('acme'), a non-production policy ('nonprod:sandbox') or
a hostname. REST and realtime now share one primary domain
- Remove :environment, :rest_host, :realtime_host, :ws_host and
:fallback_hosts_use_default
- Derive default fallback hosts from the endpoint: none for a
hostname, and explicit :fallback_hosts still override them. A custom
port no longer disables fallbacks
- client.endpoint now returns the option value, the connection URI
moves to client.uri, and client.primary_domain replaces
environment/custom_host and the DOMAIN constants
- Move endpoint resolution into Ably::Internal
- Connect the WebSocket using the unbracketed hostname so IPv6 literal
endpoints work
- Point specs at ABLY_ENDPOINT (default nonprod:sandbox) and cover the
endpoint and fallback resolution cases
- Document the migration in UPDATING.md
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ttypic
force-pushed
the
integration/add-endpoint
branch
from
October 13, 2026 15:03
664f10b to
88946e0
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version 2 adopts the endpoint routing model from the spec (REC1/REC2),
so clients connect to *.realtime.ably.net, with fallbacks on
*.fallback.ably-realtime.com, instead of the rest/realtime.ably.io
domains.
policy name ('acme'), a non-production policy ('nonprod:sandbox') or
a hostname. REST and realtime now share one primary domain
:fallback_hosts_use_default
hostname, and explicit :fallback_hosts still override them. A custom
port no longer disables fallbacks
moves to client.uri, and client.primary_domain replaces
environment/custom_host and the DOMAIN constants
endpoints work
endpoint and fallback resolution cases