@cocreate/socket-server 1.7.0 → 1.7.1
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 +8 -0
- package/CoCreate.config.js +1 -1
- package/package.json +1 -1
- package/src/index.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.7.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.7.0...v1.7.1) (2023-04-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removed permission.dbs it is now handeled by crud-server ([7dfb781](https://github.com/CoCreate-app/CoCreate-socket-server/commit/7dfb7812cf4ec020d23a5b688134d33abb029d0f))
|
|
7
|
+
* renamed domans to hosts ([6e4c75c](https://github.com/CoCreate-app/CoCreate-socket-server/commit/6e4c75cd2fae0d79950c06b1b919e913fd8b16d9))
|
|
8
|
+
|
|
1
9
|
# [1.7.0](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.6.11...v1.7.0) (2023-03-19)
|
|
2
10
|
|
|
3
11
|
|
package/CoCreate.config.js
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -61,7 +61,7 @@ class SocketServer extends EventEmitter{
|
|
|
61
61
|
this.send(socket, 'connect', socket.config.key);
|
|
62
62
|
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
addClient(socket) {
|
|
66
66
|
let organization_id = socket.config.organization_id
|
|
67
67
|
let user_id = socket.config.user_id
|
|
@@ -109,8 +109,9 @@ class SocketServer extends EventEmitter{
|
|
|
109
109
|
if (user_id)
|
|
110
110
|
this.emit('userStatus', socket, {user_id, status: 'off', organization_id});
|
|
111
111
|
|
|
112
|
-
this.emit("
|
|
113
|
-
|
|
112
|
+
this.emit("deleteMetrics", null, { organization_id });
|
|
113
|
+
this.emit("deletePermissions", organization_id );
|
|
114
|
+
this.emit('disconnect', organization_id)
|
|
114
115
|
this.asyncMessages.delete(key);
|
|
115
116
|
} else {
|
|
116
117
|
let total_cnt = 0;
|
|
@@ -155,8 +156,7 @@ class SocketServer extends EventEmitter{
|
|
|
155
156
|
// else
|
|
156
157
|
this.send(socket, 'Access Denied', {action, permission, data})
|
|
157
158
|
return;
|
|
158
|
-
}
|
|
159
|
-
socket.dbs = permission.dbs
|
|
159
|
+
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
if (user_id) {
|