@inditextech/weave-store-azure-web-pubsub 0.67.5 → 0.68.0
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/dist/server.cjs +1 -7
- package/dist/server.js +1 -7
- package/package.json +2 -2
package/dist/server.cjs
CHANGED
|
@@ -22857,7 +22857,7 @@ var WeaveStoreAzureWebPubSubSyncHost = class extends Emittery {
|
|
|
22857
22857
|
this._conn = await this.createWebSocket();
|
|
22858
22858
|
}
|
|
22859
22859
|
async stop() {
|
|
22860
|
-
if (this._conn
|
|
22860
|
+
if (this._conn?.readyState === ws.WebSocket.OPEN) {
|
|
22861
22861
|
this._conn?.close();
|
|
22862
22862
|
this._conn = null;
|
|
22863
22863
|
}
|
|
@@ -22944,10 +22944,6 @@ var WeaveAzureWebPubsubSyncHandler = class extends WebPubSubEventHandler {
|
|
|
22944
22944
|
super(hub, {
|
|
22945
22945
|
...eventHandlerOptions,
|
|
22946
22946
|
handleConnect: (req, res) => {
|
|
22947
|
-
console.log("reached handleConnect", {
|
|
22948
|
-
context: req.context,
|
|
22949
|
-
queries: req.queries
|
|
22950
|
-
});
|
|
22951
22947
|
res.success();
|
|
22952
22948
|
this.syncOptions?.onConnect?.(req.context.connectionId, req.queries);
|
|
22953
22949
|
this.actualServer.emitEvent("onConnect", {
|
|
@@ -22956,12 +22952,10 @@ var WeaveAzureWebPubsubSyncHandler = class extends WebPubSubEventHandler {
|
|
|
22956
22952
|
});
|
|
22957
22953
|
},
|
|
22958
22954
|
onConnected: (req) => {
|
|
22959
|
-
console.log("reached onConnected", { context: req.context });
|
|
22960
22955
|
this.syncOptions?.onConnected?.(req.context.connectionId);
|
|
22961
22956
|
this.actualServer.emitEvent("onConnected", { context: req.context });
|
|
22962
22957
|
},
|
|
22963
22958
|
onDisconnected: (req) => {
|
|
22964
|
-
console.log("reached onDisconnected", { context: req.context });
|
|
22965
22959
|
this.handleConnectionDisconnection(req.context.connectionId);
|
|
22966
22960
|
this.actualServer.emitEvent("onDisconnected", { context: req.context });
|
|
22967
22961
|
}
|
package/dist/server.js
CHANGED
|
@@ -22861,7 +22861,7 @@ var WeaveStoreAzureWebPubSubSyncHost = class extends Emittery {
|
|
|
22861
22861
|
this._conn = await this.createWebSocket();
|
|
22862
22862
|
}
|
|
22863
22863
|
async stop() {
|
|
22864
|
-
if (this._conn
|
|
22864
|
+
if (this._conn?.readyState === WebSocket.OPEN) {
|
|
22865
22865
|
this._conn?.close();
|
|
22866
22866
|
this._conn = null;
|
|
22867
22867
|
}
|
|
@@ -22948,10 +22948,6 @@ var WeaveAzureWebPubsubSyncHandler = class extends WebPubSubEventHandler {
|
|
|
22948
22948
|
super(hub, {
|
|
22949
22949
|
...eventHandlerOptions,
|
|
22950
22950
|
handleConnect: (req, res) => {
|
|
22951
|
-
console.log("reached handleConnect", {
|
|
22952
|
-
context: req.context,
|
|
22953
|
-
queries: req.queries
|
|
22954
|
-
});
|
|
22955
22951
|
res.success();
|
|
22956
22952
|
this.syncOptions?.onConnect?.(req.context.connectionId, req.queries);
|
|
22957
22953
|
this.actualServer.emitEvent("onConnect", {
|
|
@@ -22960,12 +22956,10 @@ var WeaveAzureWebPubsubSyncHandler = class extends WebPubSubEventHandler {
|
|
|
22960
22956
|
});
|
|
22961
22957
|
},
|
|
22962
22958
|
onConnected: (req) => {
|
|
22963
|
-
console.log("reached onConnected", { context: req.context });
|
|
22964
22959
|
this.syncOptions?.onConnected?.(req.context.connectionId);
|
|
22965
22960
|
this.actualServer.emitEvent("onConnected", { context: req.context });
|
|
22966
22961
|
},
|
|
22967
22962
|
onDisconnected: (req) => {
|
|
22968
|
-
console.log("reached onDisconnected", { context: req.context });
|
|
22969
22963
|
this.handleConnectionDisconnection(req.context.connectionId);
|
|
22970
22964
|
this.actualServer.emitEvent("onDisconnected", { context: req.context });
|
|
22971
22965
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-store-azure-web-pubsub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"yjs": "13.6.27"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@inditextech/weave-sdk": "0.
|
|
64
|
+
"@inditextech/weave-sdk": "0.68.0",
|
|
65
65
|
"@koa/cors": "^5.0.0",
|
|
66
66
|
"@types/express": "^5.0.1",
|
|
67
67
|
"@types/ioredis": "^4.28.10",
|