Commit 108b9df8 by 周志凯

ev

1 parent cc008975
......@@ -1923,7 +1923,7 @@
console.log('socket:onclose')
};
self.socket.onmessage = function(evt) {
self.socket.onmessage = function(ev) {
var msg = JSON.parse(ev.data)
console.log('[onmessage]:', msg)
self.dealMessage(msg)
......@@ -1932,9 +1932,9 @@
self.socket.close()
}
};
self.socket.onerror = function(event) {
self.socket.onerror = function(ev) {
console.log("设备WebSocket:发生错误 ");
console.log(event);
console.log(ev);
}
} catch (error) {
console.log('onSocketConnect:', error)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!