@cocreate/socket-server 1.24.2 → 1.24.3
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.24.3](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.24.2...v1.24.3) (2023-12-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* if no sockets[i] continue ([fcab2cc](https://github.com/CoCreate-app/CoCreate-socket-server/commit/fcab2ccbf5ea6199ac2e2ceb111aa1fa6f23cf28))
|
|
7
|
+
|
|
1
8
|
## [1.24.2](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.24.1...v1.24.2) (2023-12-09)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -461,6 +461,9 @@ class SocketServer extends EventEmitter {
|
|
|
461
461
|
delete data.socket
|
|
462
462
|
|
|
463
463
|
for (let i = 0; i < sockets.length; i++) {
|
|
464
|
+
if (!sockets[i])
|
|
465
|
+
continue
|
|
466
|
+
|
|
464
467
|
const authorized = await this.authorize.check(data, sockets[i].user_id)
|
|
465
468
|
if (authorized && authorized.authorized)
|
|
466
469
|
sockets[i].send(JSON.stringify(authorized.authorized));
|