@arcblock/ws 1.18.36 → 1.18.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -86,7 +86,7 @@ class WsServer extends EventEmitter {
86
86
 
87
87
  if (!this.authenticate) {
88
88
  this.wss.handleUpgrade(request, socket, head, (ws) => {
89
- this.wss.emit('connection', ws);
89
+ this.wss.emit('connection', ws, request);
90
90
  });
91
91
  return;
92
92
  }
@@ -99,7 +99,7 @@ class WsServer extends EventEmitter {
99
99
  }
100
100
  this.wss.handleUpgrade(request, socket, head, (ws) => {
101
101
  ws.authInfo = authInfo;
102
- this.wss.emit('connection', ws);
102
+ this.wss.emit('connection', ws, request);
103
103
  });
104
104
  });
105
105
  }
@@ -261,7 +261,6 @@ class WsServer extends EventEmitter {
261
261
 
262
262
  /**
263
263
  * private
264
- * @param {socket} socket
265
264
  */
266
265
  async onWssConnection(socket) {
267
266
  socket.id = nanoid();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ws",
3
- "version": "1.18.36",
3
+ "version": "1.18.37",
4
4
  "description": "OCAP Chain websocket server and client",
5
5
  "keywords": [
6
6
  "websocket"
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/ArcBlock/asset-chain/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@arcblock/event-hub": "1.18.36",
37
+ "@arcblock/event-hub": "1.18.37",
38
38
  "debug": "^4.3.4",
39
39
  "eventemitter3": "^4.0.7",
40
40
  "lodash": "^4.17.21",
@@ -45,5 +45,5 @@
45
45
  "devDependencies": {
46
46
  "get-port": "^5.1.1"
47
47
  },
48
- "gitHead": "507eaab0fc94d92a88c49c2e3441c5f6b0e3788f"
48
+ "gitHead": "30215e61b8ff7abb8ccd44981cd5de30bb2b1355"
49
49
  }