@eleven-am/pondsocket 0.1.172 → 0.1.173
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.
|
@@ -106,8 +106,13 @@ class EndpointEngine {
|
|
|
106
106
|
}
|
|
107
107
|
exports.EndpointEngine = EndpointEngine;
|
|
108
108
|
_EndpointEngine_clientFactory = new WeakMap(), _EndpointEngine_sockets = new WeakMap(), _EndpointEngine_middleware = new WeakMap(), _EndpointEngine_lobbyEngines = new WeakMap(), _EndpointEngine_instances = new WeakSet(), _EndpointEngine_handleSocketClose = function _EndpointEngine_handleSocketClose(cache) {
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
try {
|
|
110
|
+
__classPrivateFieldGet(this, _EndpointEngine_sockets, "f").delete(cache.clientId);
|
|
111
|
+
cache.subscriptions.forEach((unsubscribe) => unsubscribe());
|
|
112
|
+
}
|
|
113
|
+
catch (e) {
|
|
114
|
+
// no-op
|
|
115
|
+
}
|
|
111
116
|
}, _EndpointEngine_handleMessage = function _EndpointEngine_handleMessage(cache, message) {
|
|
112
117
|
switch (message.action) {
|
|
113
118
|
case pondsocket_common_1.ClientActions.JOIN_CHANNEL:
|