use-stomp
Version:
react provider, class decorator, and a hook for websockets using the stomp protocol
28 lines (27 loc) • 631 B
TypeScript
export declare const Events: {
CONNECT: string;
CONNECTION: string;
DISCONNECT: string;
DISMISS_SYNC: string;
ERROR: string;
MESSAGE: string;
READY: string;
REGISTER: string;
SEND_MESSAGE: string;
SET_AUTH_HEADER: string;
SET_HEADER: string;
SET_URL: string;
SET_VISIBILITY: string;
SUBSCRIBE: string;
SUBSCRIBE_SYNC: string;
TEST_DISCONNECT: string;
UNREGISTER: string;
UNSUBSCRIBE: string;
UNSUBSCRIBE_SYNC: string;
};
export declare const States: {
CONNECTED: string;
CONNECTING: string;
DISCONNECTED: string;
DISCONNECTING: string;
};