@cocreate/socket-server 1.3.1 → 1.3.4
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/CHANGELOG.md +21 -0
- package/docs/index.html +1 -1
- package/package.json +3 -3
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.3.4](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.3.3...v1.3.4) (2022-09-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump dependencies ([f2acaae](https://github.com/CoCreate-app/CoCreate-socket-server/commit/f2acaae991750822923268baa3daf1a56db9f901))
|
|
7
|
+
|
|
8
|
+
## [1.3.3](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.3.2...v1.3.3) (2022-08-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* renamed variable broadcast_sender to broadcastSender ([752c5f6](https://github.com/CoCreate-app/CoCreate-socket-server/commit/752c5f6b7ce850ab81883ee39ace9922093bcf5b))
|
|
14
|
+
|
|
15
|
+
## [1.3.2](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.3.1...v1.3.2) (2022-07-25)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* replaced attribute pass-fetch_value with pass-filter-value ([8697c35](https://github.com/CoCreate-app/CoCreate-socket-server/commit/8697c354bcb07da03a9aaf08ac4e019ebf1a492c))
|
|
21
|
+
|
|
1
22
|
## [1.3.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.3.0...v1.3.1) (2022-05-17)
|
|
2
23
|
|
|
3
24
|
|
package/docs/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/socket-server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "CoCreate-socket-server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cocreate-socket",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://cocreate.app/docs/CoCreate-socket-server",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cocreate/docs": "^1.
|
|
44
|
-
"@cocreate/uuid": "^1.
|
|
43
|
+
"@cocreate/docs": "^1.3.6",
|
|
44
|
+
"@cocreate/uuid": "^1.2.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"express": "^4.17.1",
|
package/src/index.js
CHANGED
|
@@ -198,7 +198,7 @@ class SocketServer extends EventEmitter{
|
|
|
198
198
|
|
|
199
199
|
if (clients) {
|
|
200
200
|
clients.forEach((client) => {
|
|
201
|
-
if (socket != client || socket == client && data.
|
|
201
|
+
if (socket != client || socket == client && data.broadcastSender != false) {
|
|
202
202
|
if (isAsync) {
|
|
203
203
|
asyncData.push({socket: client, message: responseData})
|
|
204
204
|
} else {
|
|
@@ -214,7 +214,7 @@ class SocketServer extends EventEmitter{
|
|
|
214
214
|
this.clients.forEach((value, key) => {
|
|
215
215
|
if (key.includes(room_key)) {
|
|
216
216
|
value.forEach(client => {
|
|
217
|
-
if (socket != client || socket == client && data.
|
|
217
|
+
if (socket != client || socket == client && data.broadcastSender != false) {
|
|
218
218
|
if (isAsync) {
|
|
219
219
|
asyncData.push({socket: client, message: responseData})
|
|
220
220
|
} else {
|