@cocreate/users 1.5.0 → 1.5.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 +7 -0
- package/package.json +1 -1
- package/src/server.js +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.5.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.5.0...v1.5.1) (2022-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update param roomInfo to socketInfo ([6784138](https://github.com/CoCreate-app/CoCreate-users/commit/6784138e71feb00866cb8159b1d3c95136b5f00d))
|
|
7
|
+
|
|
1
8
|
# [1.5.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.4.35...v1.5.0) (2022-03-03)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -9,12 +9,12 @@ class CoCreateUser {
|
|
|
9
9
|
|
|
10
10
|
init() {
|
|
11
11
|
if (this.wsManager) {
|
|
12
|
-
this.wsManager.on('createUserNew', (socket, data,
|
|
13
|
-
this.wsManager.on('createUser', (socket, data,
|
|
14
|
-
this.wsManager.on('login', (socket, data,
|
|
15
|
-
this.wsManager.on('usersCurrentOrg', (socket, data,
|
|
16
|
-
this.wsManager.on('fetchUser', (socket, data,
|
|
17
|
-
this.wsManager.on('userStatus', (socket, data,
|
|
12
|
+
this.wsManager.on('createUserNew', (socket, data, socketInfo) => this.createUserNew(socket, data));
|
|
13
|
+
this.wsManager.on('createUser', (socket, data, socketInfo) => this.createUser(socket, data));
|
|
14
|
+
this.wsManager.on('login', (socket, data, socketInfo) => this.login(socket, data, socketInfo))
|
|
15
|
+
this.wsManager.on('usersCurrentOrg', (socket, data, socketInfo) => this.usersCurrentOrg(socket, data, socketInfo))
|
|
16
|
+
this.wsManager.on('fetchUser', (socket, data, socketInfo) => this.fetchUser(socket, data, socketInfo))
|
|
17
|
+
this.wsManager.on('userStatus', (socket, data, socketInfo) => this.setUserStatus(socket, data, socketInfo))
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -227,7 +227,7 @@ class CoCreateUser {
|
|
|
227
227
|
/**
|
|
228
228
|
* status: 'on/off/idle'
|
|
229
229
|
*/
|
|
230
|
-
async setUserStatus(socket, req_data,
|
|
230
|
+
async setUserStatus(socket, req_data, socketInfo) {
|
|
231
231
|
const self = this;
|
|
232
232
|
const {info, status} = req_data;
|
|
233
233
|
|