@x5e/gink
Version:
an eventually consistent database
23 lines (22 loc) • 697 B
TypeScript
import { Database } from "./Database";
import { Store } from "./Store";
import { CallBack, NumberStr, FilePath, DirPath, AuthFunction } from "./typedefs";
/**
* A server that connects all inbound websocket connections to a single database instance.
*/
export declare class SimpleServer extends Database {
private listener;
readonly authFunc: AuthFunction;
constructor(args?: {
store?: Store;
port?: NumberStr;
sslKeyFilePath?: FilePath;
sslCertFilePath?: FilePath;
staticContentRoot?: DirPath;
logger?: CallBack;
identity?: string;
authFunc?: AuthFunction;
});
private onRequest;
private requestListener;
}