qn-im-sdk
Version:
QnzsIM SDK
12 lines (11 loc) • 354 B
TypeScript
import { CbEvents } from "../constants";
import { WsResponse } from "../types";
type Cbfn = (data: WsResponse) => void;
declare class Emitter {
private events;
constructor();
emit(event: CbEvents, data: WsResponse): this;
on(event: CbEvents, fn: Cbfn): this;
off(event: CbEvents, fn: Cbfn): this;
}
export default Emitter;