UNPKG

mysql-live

Version:

Brings the server.publish and client.subscribe for live updates on mysql database. The only one Live Collections.

13 lines (12 loc) 554 B
import { default as Handler, onAcknowledgementType } from "./Handler"; export declare type MethodsDictionary = { [methodName: string]: (...args: any[]) => any; }; export declare class MethodStore { private handler; constructor(handler: Handler); registedMethods: MethodsDictionary; registerMethods(methodsObj: MethodsDictionary): void; callMethod(socket: SocketIO.Socket, methodName: string, methodsArguments: any[], cb?: onAcknowledgementType): void; callMethodFromServer(methodName: string, methodsArguments: any[]): any; }