diff --git a/src/ts/@overflow/commons/websocket/WebSocketRPC.ts b/src/ts/@overflow/commons/websocket/WebSocketRPC.ts index 5edd904..3aad65e 100644 --- a/src/ts/@overflow/commons/websocket/WebSocketRPC.ts +++ b/src/ts/@overflow/commons/websocket/WebSocketRPC.ts @@ -131,8 +131,12 @@ export default class WebSocketRPC { private onResponseHandler(response: Response): void { const requestID = response.ID; - const error = response.Error; - const result = JSON.parse(response.Result); + let error = response.Error; + let result; + + if (undefined !== response.Result) { + result = JSON.parse(response.Result); + } if (this.requestQueue.has(requestID)) { let promise = this.requestQueue.get(requestID);