Skip to content

Commit 4c2636a

Browse files
committed
fix: bump dependencies
1 parent c58c8f9 commit 4c2636a

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"html5-framework",
2121
"javascript-framework"
2222
],
23-
"publishConfig": {
24-
"access": "public"
25-
},
23+
"publishConfig": { "access": "public" },
2624
"main": "./src/index",
2725
"scripts": {
2826
"demo": "PORT=5000 node demo/server.js",
@@ -39,12 +37,6 @@
3937
"url": "https://github.com/CoCreate-app/CoCreate-socket-server/issues"
4038
},
4139
"homepage": "https://cocreate.app/docs/CoCreate-socket-server",
42-
"dependencies": {
43-
"@cocreate/docs": "^1.4.3",
44-
"@cocreate/uuid": "^1.2.24"
45-
},
46-
"devDependencies": {
47-
"express": "^4.17.1",
48-
"ws": "7.5.9"
49-
}
40+
"dependencies": { "@cocreate/docs": "^1.4.4", "@cocreate/uuid": "^1.2.25" },
41+
"devDependencies": { "express": "^4.17.1", "ws": "7.5.9" }
5042
}

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class SocketServer extends EventEmitter{
207207

208208
if (clients) {
209209
clients.forEach((client) => {
210-
if (socket != client || socket == client && data.broadcastSender != false) {
210+
if (socket != client && data.broadcast != false || socket == client && data.broadcastSender != false) {
211211
if (isAsync) {
212212
asyncData.push({socket: client, message: responseData})
213213
} else {
@@ -223,7 +223,7 @@ class SocketServer extends EventEmitter{
223223
this.clients.forEach((value, key) => {
224224
if (key.includes(url)) {
225225
value.forEach(client => {
226-
if (socket != client || socket == client && data.broadcastSender != false) {
226+
if (socket != client && data.broadcast != false || socket == client && data.broadcastSender != false) {
227227
if (isAsync) {
228228
asyncData.push({socket: client, message: responseData})
229229
} else {

0 commit comments

Comments
 (0)