Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ChannelStateChange.hasBacklog and return ChannelStateChange from attach/subscribe #152

Merged
merged 2 commits into from
Jun 29, 2023

Conversation

owenpearson
Copy link
Member

See ably/ably-js#1347 for discussion + example implementation.

The motivation for this change is to allow users, when using rewind=1, to wait for rewind messages to have been received (this wasn't possible before since there was no way to determine whether a rewind message is to be expected)

Returning ChannelStateChange from attach/subscribe is an API convenience which makes sense given that both methods return a promise/future/whatever resolving when the channel is attached and, by convention, information about the attachment is exposed via ChannelStateChange objects.

I don't expect there to be a demand for either of these features outside of ably-js so I've described both as optional.

@github-actions github-actions bot temporarily deployed to staging/pull/152 June 28, 2023 10:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/152 June 28, 2023 10:48 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/152 June 28, 2023 10:49 Inactive
textile/features.textile Outdated Show resolved Hide resolved
textile/features.textile Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to staging/pull/152 June 28, 2023 14:21 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/152 June 29, 2023 10:38 Inactive
textile/features.textile Outdated Show resolved Hide resolved
textile/features.textile Outdated Show resolved Hide resolved
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.

3 participants