@ray-core/plugin-devtools
Version:
Inject React Devtools to Ray
21 lines (20 loc) • 404 B
TypeScript
declare enum ReadyState {
CONNECTING = 0,
OPEN = 1,
CLOSING = 2,
CLOSED = 3
}
export default class WebSocket {
readyState: ReadyState;
CONNECTING: ReadyState;
OPEN: ReadyState;
CLOSING: ReadyState;
CLOSED: ReadyState;
onopen?: any;
onerror?: any;
onclose?: any;
onmessage?: any;
constructor(url: string);
send(payload: any): void;
}
export {};