angelia.io
Version:
WebSockets Server and Client API for node.js and the browser, with rooms support.
21 lines (20 loc) • 899 B
TypeScript
export class Room extends Emitter {
id: any;
persistent: any;
/** @param socket {import('./Socket.js').Socket} */
onCreate(socket: import("./Socket.js").Socket): void;
/** @param socket {import('./Socket.js').Socket} */
onDelete(socket: import("./Socket.js").Socket): void;
/** @param socket {import('./Socket.js').Socket} */
onJoin(socket: import("./Socket.js").Socket): void;
/** @param socket {import('./Socket.js').Socket} */
onLeave(socket: import("./Socket.js").Socket): void;
/** @param socket {import('./Socket.js').Socket} */
[join](socket: import("./Socket.js").Socket): void;
/** @param socket {import('./Socket.js').Socket} */
[leave](socket: import("./Socket.js").Socket): void;
[Symbol.iterator](): any;
}
import { Emitter } from './Emitter.js';
import { join } from './constants.js';
import { leave } from './constants.js';