Fix websocket event handler name
// FREEBIE
This commit is contained in:
@@ -39409,7 +39409,7 @@ function generateKeys(count, progressCallback) {
|
|||||||
|
|
||||||
this.socket.onclose = this.onclose.bind(this);
|
this.socket.onclose = this.onclose.bind(this);
|
||||||
this.socket.onerror = this.onerror.bind(this);
|
this.socket.onerror = this.onerror.bind(this);
|
||||||
this.socket.onconnect = this.onconnect.bind(this);
|
this.socket.onopen = this.onopen.bind(this);
|
||||||
this.wsr = new WebSocketResource(this.socket, {
|
this.wsr = new WebSocketResource(this.socket, {
|
||||||
handleRequest: this.handleRequest.bind(this),
|
handleRequest: this.handleRequest.bind(this),
|
||||||
keepalive: { path: '/v1/keepalive', disconnect: true }
|
keepalive: { path: '/v1/keepalive', disconnect: true }
|
||||||
@@ -39419,8 +39419,8 @@ function generateKeys(count, progressCallback) {
|
|||||||
this.socket.close();
|
this.socket.close();
|
||||||
delete this.listeners;
|
delete this.listeners;
|
||||||
},
|
},
|
||||||
onconnect: function() {
|
onopen: function() {
|
||||||
console.log('websocket connected');
|
console.log('websocket open');
|
||||||
},
|
},
|
||||||
onerror: function(error) {
|
onerror: function(error) {
|
||||||
console.log('websocket error', error);
|
console.log('websocket error', error);
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
this.socket.onclose = this.onclose.bind(this);
|
this.socket.onclose = this.onclose.bind(this);
|
||||||
this.socket.onerror = this.onerror.bind(this);
|
this.socket.onerror = this.onerror.bind(this);
|
||||||
this.socket.onconnect = this.onconnect.bind(this);
|
this.socket.onopen = this.onopen.bind(this);
|
||||||
this.wsr = new WebSocketResource(this.socket, {
|
this.wsr = new WebSocketResource(this.socket, {
|
||||||
handleRequest: this.handleRequest.bind(this),
|
handleRequest: this.handleRequest.bind(this),
|
||||||
keepalive: { path: '/v1/keepalive', disconnect: true }
|
keepalive: { path: '/v1/keepalive', disconnect: true }
|
||||||
@@ -44,8 +44,8 @@
|
|||||||
this.socket.close();
|
this.socket.close();
|
||||||
delete this.listeners;
|
delete this.listeners;
|
||||||
},
|
},
|
||||||
onconnect: function() {
|
onopen: function() {
|
||||||
console.log('websocket connected');
|
console.log('websocket open');
|
||||||
},
|
},
|
||||||
onerror: function(error) {
|
onerror: function(error) {
|
||||||
console.log('websocket error', error);
|
console.log('websocket error', error);
|
||||||
|
Reference in New Issue
Block a user