mysql-live-client
Version:
The client side script of mysql-live package.
25 lines (24 loc) • 862 B
TypeScript
import Collection from "./Collection";
import Dispatcher from "./Dispatcher";
export declare class MysqlLiveClient {
private NAMESPACE;
private PROTOCOL;
private DOMAIN;
private PORT;
private handler;
constructor();
Endpoint: string;
getCurrentLocationHref(): string;
setEndpoint(domain: string, protocol?: string, port?: number): string;
connect(_endpoint?: string): Dispatcher;
isListening: boolean;
subscribe(publicationName: string, ...args: any[]): void;
Collection(collectionName: string): Collection;
Object(objectName: string): Collection;
unsubscribe(collectionName: string): boolean;
setPassport(passport: any, cb?: () => void): void;
call(methodName: string, ...args: any[]): void;
socket: SocketIOClient.Socket;
}
declare var _default: MysqlLiveClient;
export default _default;