UNPKG

@authup/core-realtime-kit

Version:

Package containing a toolkit for the core realtime service.

28 lines 735 B
export type STCEventContext<T extends Record<string, any>> = T & { meta: { roomName?: string; roomId?: string | number; }; }; export type EventTarget = string | number | undefined; export interface EventCallback<T = any> { (error: Error | null): void; (error: Error | null, data: T): void; } export type DefaultEvents = { [event: string]: any; }; export type STSEvents = { [event: string]: (...args: any[]) => void; }; export type STCEvents = { [event: string]: (...args: any[]) => void; }; export type CTSEvents = { [event: string]: (...args: any[]) => void; }; export type DisconnectDescription = { description: string; context?: unknown; }; //# sourceMappingURL=types.d.ts.map