@xpresser/events-server
Version:
Xpresser's Official Events Server Plugin.
17 lines (16 loc) • 656 B
TypeScript
import type { DollarSign } from "xpresser/types";
declare class EventsServerCommunicator {
#private;
readonly name?: string;
readonly $: DollarSign;
private socket;
isConnected: boolean;
private readonly db;
constructor(secretKey: string, $: DollarSign, name?: string);
connect(onAuthorized?: (...args: any) => any, onError?: (err: any) => any): void;
emit(event: string, ...args: any[]): boolean | undefined;
push(event: string, ...args: any[]): this;
retryFailedEvents(): void;
failedEvents(): import("object-collection")<import("object-collection/types").OC_TObject>;
}
export = EventsServerCommunicator;