/// import { Objectmap } from "lik"; import { SocketRole } from "./smartsocket.classes.socketrole"; export interface ISocketObject { alias?: string; authenticated: boolean; role?: string; socket: SocketIO.Socket; } export interface ISmartsocketConstructorOptions { port: number; } export declare class Smartsocket { options: ISmartsocketConstructorOptions; io: SocketIO.Server; openSockets: Objectmap; registeredRoles: Objectmap; constructor(optionsArg: ISmartsocketConstructorOptions); /** * the standard handler for new socket connections */ private _handleSocket(socket); registerFunctions(socketRoleArg: SocketRole): void; /** * starts listening to incling sockets: */ startServer: () => void; closeServer: () => void; }