-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
RealtimeChannel.attach
returns ChannelStateChange
Makes it so that `RealtimeChannel.attach` exposes the `ChannelStateChange` via whatever async api (invoke callback or fulfill promise). This makes it easy for users to access flags on the `ChannelStateChange` to access information about the attachment. There is a slightly awkward case where, if the channel is already attached, in order to fulfill the new API contract, a synthetic attached -> attached state change is returned.
- Loading branch information
1 parent
3915bcd
commit fa90767
Showing
3 changed files
with
105 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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