@amityco/ts-sdk
Version:
Amity Social Cloud Typescript SDK
38 lines • 916 B
TypeScript
declare class RoomPresenceSyncEngine {
private heartbeatTimer;
private roomId;
private isEnabled;
private config;
constructor(roomId: string);
private initializeConfig;
private static getPresenceSettingWithRetry;
/**
* Start heartbeat for the room
*/
start(): void;
/**
* Stop heartbeat for the room
*/
stop(): void;
/**
* Send heartbeat to the room
*/
private sendHeartbeat;
/**
* Get the room ID
*/
getRoomId(): string;
/**
* Check if the engine is enabled
*/
isActive(): boolean;
/**
* Cleanup method to stop all timers and release resources
* Call this when the engine instance is no longer needed
*/
destroy(): void;
onSessionDestroyed(): void;
onTokenExpired(): void;
}
export default RoomPresenceSyncEngine;
//# sourceMappingURL=RoomPresenceSyncEngine.d.ts.map