import Base from './Base'; import Room from './Room'; import WsSet from '../base/WsSet'; export default class Socket extends Base { /** * * @template { * id: string; * properties: Record; * rooms: string[]; * namespace: string; * } */ roomIds: string[]; static table: string; toString(): string; toJSON(): Record; update(data: { properties?: Record; rooms?: Array>; }): Promise; rooms(): Promise>; join(room: Room): Promise; leave(room: Room): Promise; static init(this: T, data: Record): InstanceType; merge(data: Socket): void; close(): Promise; [Symbol.toPrimitive](hint: string): string | true; }