|
@@ -10,7 +10,7 @@ export default function connectTestTool(url) {
|
|
|
class TestToolSocket {
|
|
|
constructor(url){
|
|
|
this._socket = new WebSocket(url);
|
|
|
- this._socket.onmessage = (e) => this.onRecieveMessage(e);
|
|
|
+ this._socket.onmessage = (e) => this.onRecieveMessage(JSON.parse(e.data).data);
|
|
|
this._socket.onclose = (e) => this.onClose(e);
|
|
|
this._socket.onerror = (e) => this.onError(e);
|
|
|
// this._socket.onopen = (e) => this.onOpen(e);
|