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

TypeDefault
String (Required)No Default

Hook Return Value

chatRoom

TypeDefault
IChatRoomPayloadnull