@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
17 lines • 639 B
TypeScript
/**
* ```js
* import { getRoomUserCount } from '@amityco/ts-sdk-react-native'
* const count = await getRoomUserCount('roomId')
* ```
*
* Retrieves the count of users currently watching or present in a specific room.
* This function returns the total number of online users without fetching their full user data.
*
* @param roomId The ID of the room to get the user count for
* @returns Promise that resolves with the room watching count data
*
* @category Room Presence API
* @async
*/
export declare const getRoomUserCount: (roomId: string) => Promise<Amity.RoomWatchingCount>;
//# sourceMappingURL=getRoomUserCount.d.ts.map