import WsSet from '../base/WsSet'; import Base from './Base'; import Socket from './Socket'; export default class Room extends Base { /** * * @template { * id: string; * properties: Record; * sockets: string[]; * namespace: string; * } */ static table: string; /** * @type { string[] } * @description 房间内的连接ID * @example ["socket1", "socket2"] */ socketIds: string[]; update(data: { sockets?: Array; properties?: Record; }): Promise; sockets(): Promise>; members(): Promise>; join(ws: Socket): Promise; leave(ws: Socket): Promise; toString(): string; toJSON(): { id: string; sockets: string[]; properties: { [x: string]: any; }; namespace: string; }; [Symbol.toPrimitive](hint: string): string | true; merge(data: Room): void; static init(this: T, data: any): InstanceType; }