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
roomId
Type | Default |
---|---|
String (Required) | No Default |
Hook Return Value
chatRoom
chatRoom
Type | Default |
---|---|
IChatRoomPayload | null |
Updated 11 months ago
What’s Next