PhilKunz
ab2196fd5f
starting with updating tests to use both server and client side to mimic operation
23 lines
689 B
TypeScript
23 lines
689 B
TypeScript
/// <reference types="socket.io" />
|
|
import { Objectmap } from "lik";
|
|
import { SocketConnection } from "./smartsocket.classes.socketconnection";
|
|
export interface ISmartsocketConstructorOptions {
|
|
port: number;
|
|
}
|
|
export declare class Smartsocket {
|
|
options: ISmartsocketConstructorOptions;
|
|
io: SocketIO.Server;
|
|
openSockets: Objectmap<SocketConnection>;
|
|
constructor(optionsArg: ISmartsocketConstructorOptions);
|
|
/**
|
|
* the standard handler for new socket connections
|
|
*/
|
|
private _handleSocketConnection(socketArg);
|
|
/**
|
|
* starts listening to incling sockets:
|
|
*/
|
|
startServer: () => void;
|
|
closeServer: () => void;
|
|
clientCall(): void;
|
|
}
|