From 7644f9616595c8527febff175dd22bef071ad3ad Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 28 Jul 2017 19:09:20 +0900 Subject: [PATCH] Injectable is added. --- src/ts/@overflow/commons/websocket/WebSocketRPC.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;