Skip to content

RTL4m1: decode the subscribe mode flag as MESSAGE_SUBSCRIBE - #555

Merged
SimonWoolf merged 2 commits into
mainfrom
rtl4m-message-subscribe
Oct 9, 2026
Merged

SimonWoolf merged 2 commits into
mainfrom
rtl4m-message-subscribe

Conversation

@SimonWoolf

Copy link
Copy Markdown
Member

Follow-up to 70acf87 (TR3u), which added MESSAGE_SUBSCRIBE as the preferred synonym for SUBSCRIBE. Both names share a flag value, so RTL4m doesn't say which one an SDK should report in RealtimeChannel.modes.

  • Adds RTL4m1: where more than one ChannelMode corresponds to the same flag, modes must contain only the preferred variant, so the subscribe flag is decoded as MESSAGE_SUBSCRIBE.
  • Updates the RTL4m UTS test to assert message_subscribe. The test ID is unchanged, so existing SDK ports still map to it.
  • Adds MESSAGE_SUBSCRIBE to the ChannelMode docstrings, which the original rename missed.

ably-js implementation: ably/ably-pubsub-js#2317

🤖 Generated with Claude Code

@ttypic ttypic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

SimonWoolf and others added 2 commits October 9, 2026 17:23
TR3s SUBSCRIBE and TR3u MESSAGE_SUBSCRIBE share a flag value, so RTL4m
didn't say which one an SDK should report in RealtimeChannel.modes.
Specify the preferred variant, and update the RTL4m UTS test to match.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Follows up the TR3u rename, which updated features.md but not the
docstrings.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@SimonWoolf
SimonWoolf enabled auto-merge October 9, 2026 16:23
@SimonWoolf
SimonWoolf force-pushed the rtl4m-message-subscribe branch from 938646a to eb2a2b6 Compare October 9, 2026 16:23
@SimonWoolf
SimonWoolf merged commit f787470 into main Oct 9, 2026
2 checks passed
@SimonWoolf
SimonWoolf deleted the rtl4m-message-subscribe branch October 9, 2026 16:24

This branch was successfully deployed

1 active deployment
staging/pull/555 — eb2a2b6a Deployed Oct 9, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants