@arcblock/ws 1.13.37 → 1.13.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server/index.js +2 -2
- package/package.json +3 -3
package/lib/server/index.js
CHANGED
|
@@ -122,8 +122,6 @@ class WsServer extends EventEmitter {
|
|
|
122
122
|
const enableLog = options.enableLog !== undefined ? !!options.enableLog : true;
|
|
123
123
|
const replyId = uuid.v4();
|
|
124
124
|
|
|
125
|
-
eventHub.broadcast(this.broadcastEventName, { topic, event, data, options, enableLog, replyId });
|
|
126
|
-
|
|
127
125
|
// Count of clients what will receive the message
|
|
128
126
|
// The count is NOT reliable
|
|
129
127
|
let count = 0;
|
|
@@ -133,6 +131,8 @@ class WsServer extends EventEmitter {
|
|
|
133
131
|
}
|
|
134
132
|
});
|
|
135
133
|
|
|
134
|
+
eventHub.broadcast(this.broadcastEventName, { topic, event, data, options, enableLog, replyId });
|
|
135
|
+
|
|
136
136
|
// wait 600ms for message sending by each process
|
|
137
137
|
await sleep(600);
|
|
138
138
|
eventHub.off(replyId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ws",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.38",
|
|
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.13.
|
|
37
|
+
"@arcblock/event-hub": "1.13.38",
|
|
38
38
|
"debug": "^4.3.2",
|
|
39
39
|
"eventemitter3": "^4.0.4",
|
|
40
40
|
"phoenix": "1.5.12",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"get-port": "^5.1.1"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "1a63d4006790a3a995317552e6f332be8d523e67"
|
|
48
48
|
}
|