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 about 1 year ago
What’s Next