|
@@ -10,7 +10,7 @@ export default function connectTestTool(url) {
|
|
class TestToolSocket {
|
|
class TestToolSocket {
|
|
constructor(url){
|
|
constructor(url){
|
|
this._socket = new WebSocket(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.onclose = (e) => this.onClose(e);
|
|
this._socket.onerror = (e) => this.onError(e);
|
|
this._socket.onerror = (e) => this.onError(e);
|
|
// this._socket.onopen = (e) => this.onOpen(e);
|
|
// this._socket.onopen = (e) => this.onOpen(e);
|