@arcblock/ws 1.18.35 → 1.18.37
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/server/index.js +2 -3
- package/package.json +3 -3
package/lib/server/index.js
CHANGED
@@ -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.
|
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.
|
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": "
|
48
|
+
"gitHead": "30215e61b8ff7abb8ccd44981cd5de30bb2b1355"
|
49
49
|
}
|