Function ChatRoomProvider

Provider for a Room. Must be wrapped in a ChatClientProvider.

See ChatRoomProviderProps for the available props and configuring the provider to automatically attach, detach and/or release the room.

Properties

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.


const MyComponent: FC = () => {
return <div>Hello!</div>
}

MyComponent.displayName = 'MyAwesomeComponent'
propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.