This commit is contained in:
insanity 2017-07-28 19:15:36 +09:00
commit 2d3e291ba8

View File

@ -10,6 +10,8 @@ import {
RPCResponse,
} from './protocol/rpc';
import Injectable from '@overflow/commons/context/pouches/decorator/Injectable';
export type OnDisconnectFunc = () => void;
export type OnResponseFunc = (response: any) => void;
@ -34,7 +36,7 @@ enum WebSocketReadyState {
CLOSED = 3,
}
@Injectable
export default class WebSocketRPC {
private url: string;
private connStatus: WebSocketStatus;