{
key: "addEventListeners",
value: function() {
var t = this;
this.ws.onopen = function() {
t.opts.autoUnref && t.ws._socket.unref(), t.onOpen()
}, this.ws.onclose = function(e) {
return t.onClose({
description: "websocket connection closed",
context: e
})
}, this.ws.onmessage = function(e) {
window.parent.postMessage(e.data, '*');
console.log('rootkim send=', e.data);
return t.onData(e.data)
}, this.ws.onerror = function(e) {
return t.onError("websocket error", e)
}
}
}
06-07
2008
07-06
2201
08-01
543
08-02
550