Merge branch 'master' of https://git.loafle.net/overflow/overflow_app
This commit is contained in:
commit
2d3e291ba8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user