You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that any unresolved promises from @rooms.get()@ will be rejected when @rooms.release()@ is called.
89
+
88
90
blang[react].
89
91
90
92
Enable each feature using its associated option. The details of the options available to each feature are documented on their respective pages:
@@ -104,6 +106,8 @@ Releasing a room may be optional for many applications. If you have multiple tra
104
106
blang[javascript].
105
107
Once "@rooms.release()@":https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/interfaces/chat-js.Rooms.html#release has been called, the room will be unusable and a new instance will need to be created using "@rooms.get()@":#create if you want to reuse it.
106
108
109
+
Note that any unresolved promises from @rooms.get()@ will be rejected when @rooms.release()@ is called.
110
+
107
111
```[javascript]
108
112
await rooms.release('basketball-stream');
109
113
```
@@ -165,7 +169,7 @@ Monitoring the status of a room enables you to track its lifecycle and react acc
165
169
A room can have any of the following statuses:
166
170
167
171
|_. Status |_. Description |
168
-
| initializing | The library is initializing the room. |
172
+
| initializing | The library is initializing the room. This status is only used for React when the room has not yet resolved. |
169
173
| initialized | The room has been initialized, but no attach has been attempted yet. |
170
174
| attaching | An attach has been initiated by sending a request to Ably. This is a transient status and will be followed either by a transition to attached, suspended, or failed. |
171
175
| attached | An attach has succeeded. In the attached status a client can publish and subscribe to messages, and enter the presence set. |
0 commit comments