UNPKG

@x5e/gink

Version:

an eventually consistent database

12 lines (11 loc) 463 B
import { Database } from "./Database"; import { connection as WebSocketConnection } from "websocket"; import { CallBack, FilePath } from "./typedefs"; export declare class RoutingServerInstance extends Database { readonly filePath: FilePath; readonly logger: CallBack; constructor(filePath: FilePath, identity: string, logger?: CallBack); onConnection(connection: WebSocketConnection): Promise<void>; private onMessage; private onClose; }