Skip to content

Commit b0f17ea

Browse files
committed
optimize sendMessageToLocalPeerBatch
1 parent 5d08495 commit b0f17ea

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/hub.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ class Hub {
7171
if (!map.has(toPeerId)) {
7272
map.set(toPeerId, [data]);
7373
} else {
74-
// console.warn(map.get(toPeerId))
75-
map.set(toPeerId, [...map.get(toPeerId), data]);
74+
map.get(toPeerId).push(data);
7675
}
7776
}
7877
map.forEach((items, toPeerId) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cbsignal_uws",
3-
"version": "5.4.7",
3+
"version": "5.4.8",
44
"description": "SwarmCloud signaling server using uWebSockets.js",
55
"main": "index.js",
66
"bin": "index.js",

0 commit comments

Comments
 (0)