diff --git a/src/ts/@overflow/commons/websocket/WebSocketRPC.ts b/src/ts/@overflow/commons/websocket/WebSocketRPC.ts index 7ccaecd..77196c7 100644 --- a/src/ts/@overflow/commons/websocket/WebSocketRPC.ts +++ b/src/ts/@overflow/commons/websocket/WebSocketRPC.ts @@ -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;