@@ -30,12 +30,12 @@ blang[react].
3030 </aside>
3131
3232```[javascript]
33- const room = await chatClient.rooms.get('basketball-stream', RoomOptionsDefaults );
33+ const room = await chatClient.rooms.get('basketball-stream', AllFeaturesEnabled );
3434```
3535
3636```[react]
3737import * as Ably from 'ably';
38- import { ChatClientProvider, ChatRoomProvider, LogLevel, RoomOptionsDefaults } from '@ably/chat';
38+ import { ChatClientProvider, ChatRoomProvider, LogLevel, AllFeaturesEnabled } from '@ably/chat';
3939
4040const realtimeClient = new Ably.Realtime({ key: '{{API_KEY}}', clientId: 'clientId' });
4141const chatClient = new ChatClient(realtimeClient);
@@ -45,7 +45,7 @@ const App = () => {
4545 <ChatClientProvider client={chatClient}>
4646 <ChatRoomProvider
4747 id="my-room-id"
48- options={RoomOptionsDefaults }
48+ options={AllFeaturesEnabled }
4949 >
5050 <RestOfYourApp />
5151 </ChatRoomProvider>
@@ -96,10 +96,10 @@ blang[javascript,swift,kotlin].
9696 ```
9797
9898blang[javascript].
99- You can also use the @RoomOptionsDefaults @ property for each @RoomOption@ to configure whether the default settings should be used:
99+ You can also use the @AllFeaturesEnabled @ property for each @RoomOption@ to configure whether preconfigured example settings should be used:
100100
101101 ```[javascript]
102- const room = await chatClient.rooms.get('basketball-stream', {presence: RoomOptionsDefaults .presence});
102+ const room = await chatClient.rooms.get('basketball-stream', {presence: AllFeaturesEnabled .presence});
103103 ```
104104
105105 Or configure each feature using your own values:
@@ -114,10 +114,10 @@ Enable each feature using its associated option. The details of the options avai
114114
115115blang[javascript].
116116 | Feature | @RoomOption@ | Default settings |
117- | "Presence":/docs/chat/rooms/presence | @presence@ | @RoomOptionsDefaults .presence@ |
118- | "Occupancy":/docs/chat/rooms/occupancy | @occupancy@ | @RoomOptionsDefaults .occupancy@ |
119- | "Typing indicators":/docs/chat/rooms/typing | @typing@ | @RoomOptionsDefaults .typing@ |
120- | "Room reactions":/docs/chat/rooms/reactions | @reactions@ | @RoomOptionsDefaults .reactions@ |
117+ | "Presence":/docs/chat/rooms/presence | @presence@ | @AllFeaturesEnabled .presence@ |
118+ | "Occupancy":/docs/chat/rooms/occupancy | @occupancy@ | @AllFeaturesEnabled .occupancy@ |
119+ | "Typing indicators":/docs/chat/rooms/typing | @typing@ | @AllFeaturesEnabled .typing@ |
120+ | "Room reactions":/docs/chat/rooms/reactions | @reactions@ | @AllFeaturesEnabled .reactions@ |
121121
122122blang[swift,kotlin].
123123 | Feature | @RoomOption@ | Default settings |
0 commit comments