@inditextech/weave-store-azure-web-pubsub 0.67.1 → 0.67.2

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 CHANGED
@@ -22949,18 +22949,16 @@ var WeaveAzureWebPubsubSyncHandler = class extends WebPubSubEventHandler {
22949
22949
  ...eventHandlerOptions,
22950
22950
  handleConnect: (req, res) => {
22951
22951
  const roomId = req.queries?.group?.[0];
22952
- if (!roomId) {
22953
- console.warn("Missing or invalid roomId in connection request");
22954
- return res.fail(400, "Missing or invalid roomId");
22952
+ if (roomId) {
22953
+ this._connectionGroup.set(req.context.connectionId, roomId);
22954
+ this.eventsHub.emit("onConnect", {
22955
+ roomId,
22956
+ context: req.context,
22957
+ connections: this.getConnectionsAmount(),
22958
+ rooms: this.getRoomsAmount(),
22959
+ roomsConnections: this.getConnectionsAmountPerRoom()
22960
+ });
22955
22961
  }
22956
- this._connectionGroup.set(req.context.connectionId, roomId);
22957
- this.eventsHub.emit("onConnect", {
22958
- roomId,
22959
- context: req.context,
22960
- connections: this.getConnectionsAmount(),
22961
- rooms: this.getRoomsAmount(),
22962
- roomsConnections: this.getConnectionsAmountPerRoom()
22963
- });
22964
22962
  res.success();
22965
22963
  },
22966
22964
  onConnected: (req) => {
package/dist/server.js CHANGED
@@ -22953,18 +22953,16 @@ var WeaveAzureWebPubsubSyncHandler = class extends WebPubSubEventHandler {
22953
22953
  ...eventHandlerOptions,
22954
22954
  handleConnect: (req, res) => {
22955
22955
  const roomId = req.queries?.group?.[0];
22956
- if (!roomId) {
22957
- console.warn("Missing or invalid roomId in connection request");
22958
- return res.fail(400, "Missing or invalid roomId");
22956
+ if (roomId) {
22957
+ this._connectionGroup.set(req.context.connectionId, roomId);
22958
+ this.eventsHub.emit("onConnect", {
22959
+ roomId,
22960
+ context: req.context,
22961
+ connections: this.getConnectionsAmount(),
22962
+ rooms: this.getRoomsAmount(),
22963
+ roomsConnections: this.getConnectionsAmountPerRoom()
22964
+ });
22959
22965
  }
22960
- this._connectionGroup.set(req.context.connectionId, roomId);
22961
- this.eventsHub.emit("onConnect", {
22962
- roomId,
22963
- context: req.context,
22964
- connections: this.getConnectionsAmount(),
22965
- rooms: this.getRoomsAmount(),
22966
- roomsConnections: this.getConnectionsAmountPerRoom()
22967
- });
22968
22966
  res.success();
22969
22967
  },
22970
22968
  onConnected: (req) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inditextech/weave-store-azure-web-pubsub",
3
- "version": "0.67.1",
3
+ "version": "0.67.2",
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.67.1",
64
+ "@inditextech/weave-sdk": "0.67.2",
65
65
  "@koa/cors": "^5.0.0",
66
66
  "@types/express": "^5.0.1",
67
67
  "@types/ioredis": "^4.28.10",