From 9d43ba870b25e561a657a04dec8e1f6b7c6e4157 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 14 Aug 2017 11:13:11 +0900 Subject: [PATCH] ing --- src/ts/@overflow/commons/websocket/WebSocketRPC.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ts/@overflow/commons/websocket/WebSocketRPC.ts b/src/ts/@overflow/commons/websocket/WebSocketRPC.ts index 4cdacb8..5edd904 100644 --- a/src/ts/@overflow/commons/websocket/WebSocketRPC.ts +++ b/src/ts/@overflow/commons/websocket/WebSocketRPC.ts @@ -7,6 +7,8 @@ import { export type OnDisconnectFunc = () => void; export type OnResponseFunc = (response: any) => void; +const PROTOCOL_NAME = '1.0'; + type ID_TYPE = number; interface RequestQueue { @@ -55,6 +57,7 @@ export default class WebSocketRPC { return new Promise((resolve, reject) => { const requestID = this.getRequestID(); let request = new Request(requestID, method, args); + request.Protocol = PROTOCOL_NAME; this.conn.send(JSON.stringify(request)); this.requestQueue.set(requestID, {resolve: resolve, reject: reject});