@cocreate/socket-server 1.3.0 → 1.3.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/index.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.3.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.3.0...v1.3.1) (2022-05-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* get orgId from socketInfo ([481821e](https://github.com/CoCreate-app/CoCreate-socket-server/commit/481821ecf9a53bc9618d8bb87b11f4509270aced))
|
|
7
|
+
|
|
1
8
|
# [1.3.0](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.2.2...v1.3.0) (2022-05-14)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -159,6 +159,7 @@ class SocketServer extends EventEmitter{
|
|
|
159
159
|
|
|
160
160
|
//. checking async status....
|
|
161
161
|
if (requestData.data.async == true) {
|
|
162
|
+
console.log('async true')
|
|
162
163
|
const uuid = CoCreateUUID.generate(), asyncMessage = this.asyncMessages.get(socketInfo.key);
|
|
163
164
|
socketInfo.asyncId = uuid;
|
|
164
165
|
if (asyncMessage) {
|
|
@@ -233,7 +234,7 @@ class SocketServer extends EventEmitter{
|
|
|
233
234
|
|
|
234
235
|
}
|
|
235
236
|
|
|
236
|
-
send(socket, messageName, data,
|
|
237
|
+
send(socket, messageName, data, socketInfo){
|
|
237
238
|
const asyncId = this.getAsyncId(socketInfo)
|
|
238
239
|
let responseData = JSON.stringify({
|
|
239
240
|
module: messageName,
|
|
@@ -245,7 +246,9 @@ class SocketServer extends EventEmitter{
|
|
|
245
246
|
} else {
|
|
246
247
|
socket.send(responseData);
|
|
247
248
|
}
|
|
248
|
-
|
|
249
|
+
|
|
250
|
+
if (socketInfo && socketInfo.orgId)
|
|
251
|
+
this.recordTransfer('out', responseData, socketInfo.orgId)
|
|
249
252
|
|
|
250
253
|
}
|
|
251
254
|
|