useChatRoom

The purpose of useChatRoom hook is to fetch and expose the chatroom resources

Example usage
const { chatRoom } = useChatRoom({ roomId: "<Room ID>" });

Hook Argument

roomId

Type

Default

String (Required)

No Default

Hook Return Value

chatRoom

Type

Default

IChatRoomPayload

null


What’s Next