@codebolt/codeboltjs 1.1.45 → 1.1.46
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/modules/chat.js +1 -1
- package/package.json +1 -1
- package/src/modules/chat.ts +1 -1
package/modules/chat.js
CHANGED
|
@@ -140,7 +140,7 @@ const cbchat = {
|
|
|
140
140
|
websocket_1.default.getWebsocket.on('message', (data) => {
|
|
141
141
|
const response = JSON.parse(data);
|
|
142
142
|
if (response.type === "confirmationResponse") {
|
|
143
|
-
resolve(response
|
|
143
|
+
resolve(response); // Resolve the Promise with the server's response
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
});
|
package/package.json
CHANGED
package/src/modules/chat.ts
CHANGED
|
@@ -146,7 +146,7 @@ const cbchat = {
|
|
|
146
146
|
cbws.getWebsocket.on('message', (data: string) => {
|
|
147
147
|
const response = JSON.parse(data);
|
|
148
148
|
if (response.type === "confirmationResponse") {
|
|
149
|
-
resolve(response
|
|
149
|
+
resolve(response); // Resolve the Promise with the server's response
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
});
|