Skip to content

Commit

Permalink
chore: missed change during resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ttypic committed Jan 7, 2025
1 parent 1c54a21 commit 84b7528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/chat/connect.textile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ blang[react].
blang[javascript,swift].

blang[javascript].
Use the "@connection.onStatusChange()@":https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/interfaces/chat_js.Connection.html#onStatusChange method to register a listener for status change updates:

blang[javascript,swift].
Use the <span lang="javascript">"@connection.onStatusChange()@":https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/interfaces/chat_js.Connection.html#onStatusChange</span><span lang="swift">"@connection.onStatusChange()@":https://sdk.ably.com/builds/ably/ably-chat-swift/main/AblyChat/documentation/ablychat/connection/onstatuschange%28%29-76t7</span> method to register a listener for status change updates.

blang[react].
Listeners can also be registered to monitor the changes in connection status. Any hooks that take an optional listener to monitor their events, such as typing indicator events in the @useTyping@ hook, can also register a status change listener. Changing the value provided for a listener will cause the previously registered listener instance to stop receiving events. All messages will be received by exactly one listener.
Expand Down Expand Up @@ -168,7 +170,7 @@ blang[javascript].
blang[swift].
Use the @unsubscribe()@ method on the returned subscription to remove a listener:

blag[react].
blang[react].

blang[javascript,swift].
```[javascript]
Expand Down
2 changes: 2 additions & 0 deletions content/chat/rooms/index.textile
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ blang[javascript,swift].
}
```

blang[react].

blang[javascript].
Use the @off()@ function returned in the @onStatusChange()@ response to remove a room status listener:

Expand Down

0 comments on commit 84b7528

Please sign in to comment.