@arcblock/ws 1.13.37 → 1.13.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.37",
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",
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": "b3a281b973b671358f70a7e248519bc2c573e3ac"
47
+ "gitHead": "1a63d4006790a3a995317552e6f332be8d523e67"
48
48
  }