use-stomp
Version:
react provider, class decorator, and a hook for websockets using the stomp protocol
21 lines (20 loc) • 595 B
TypeScript
declare const Stomp: {
debug: boolean;
VERSIONS: {
V1_0: string;
V1_1: string;
V1_2: string;
supportedVersions: () => string;
};
client: (url: any, protocols: any) => any;
over: (ws: any, debug?: boolean) => any;
setInterval: (interval: any, f: any) => number;
clearInterval: (id: any) => void;
Frame: {
(command: any, headers: any, body: any): void;
sizeOfUTF8(s: any): number;
unmarshall(datas: any): any[];
marshall(command: any, headers: any, body: any): string;
};
};
export default Stomp;