@resolveio/server-lib 5.2.24 → 5.2.25
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.
|
@@ -189,16 +189,11 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
189
189
|
sub = that._subscriptions.filter(function (a) { return a.publication === publication && JSON.stringify(a.subscriptionData) === JSON.stringify(subscriptionData); })[0];
|
|
190
190
|
// If sub found (another user watching same data), add client to same sub
|
|
191
191
|
if (sub) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
// this._mainServer.getMethodManager().sendEmail('dev@resolveio.com', 'SERVER - Subscription Error Detected (Same socket and user) - ' + that.serverConfig['CLIENT_NAME'], 'Pub: ' + sub.publication + ', id_user: ' + ws['id_user']);
|
|
201
|
-
}
|
|
192
|
+
sub.clients.push({
|
|
193
|
+
id_user: ws['id_user'],
|
|
194
|
+
messageId: messageId,
|
|
195
|
+
id_socket: ws['id_socket']
|
|
196
|
+
});
|
|
202
197
|
}
|
|
203
198
|
// If sub not found, create new sub
|
|
204
199
|
else {
|