UNPKG

@100mslive/hms-video-store

Version:

@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow

18 lines (17 loc) 541 B
import { HMSSessionStore } from '../interfaces'; import HMSTransport from '../transport'; export declare class SessionStore implements HMSSessionStore { private transport; private observedKeys; constructor(transport: HMSTransport); get(key: string): Promise<{ value: any; updatedAt: Date | undefined; }>; set(key: string, data: any): Promise<{ value: any; updatedAt: Date | undefined; }>; observe(keys: string[]): Promise<void>; unobserve(keys: string[]): Promise<void>; }