tempest.games 0.2.89 → 0.2.91

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.
@@ -2148,15 +2148,9 @@ var subscribeToRootDependency = (target, selector, atom) => {
2148
2148
  };
2149
2149
  function subscribeToState(store, token, key, handleUpdate) {
2150
2150
  function safelyHandleUpdate(update) {
2151
- if (store.operation.open) {
2152
- if (state?.type === `atom` && hasRole(state, `tracker:signal`) && `*` + store.operation.token.key === token.key && `inboundTracker` in handleUpdate)
2153
- return;
2154
- const unsubscribe$1 = store.on.operationClose.subscribe(`state subscription ${key}`, () => {
2155
- unsubscribe$1();
2156
- handleUpdate(update);
2157
- });
2158
- } else
2159
- handleUpdate(update);
2151
+ if (store.operation.open && state?.type === `atom` && hasRole(state, `tracker:signal`) && `*` + store.operation.token.key === token.key && `inboundTracker` in handleUpdate)
2152
+ return;
2153
+ handleUpdate(update);
2160
2154
  }
2161
2155
  reduceReference(store, token);
2162
2156
  const state = withdraw(store, token);
@@ -3280,11 +3274,10 @@ var ParentSocket = class extends CustomSocket {
3280
3274
  });
3281
3275
  if (this.proc.pid)
3282
3276
  this.id = this.proc.pid?.toString();
3283
- this.on(`user-joins`, (username) => {
3284
- this.logger.info(`\uD83D\uDC64`, `user`, username, `joined`);
3285
- const userKey = `user::${username}`;
3277
+ this.on(`user-joins`, (userKey) => {
3278
+ this.logger.info(`\uD83D\uDC64`, `user`, userKey, `joined`);
3286
3279
  const relay = new SubjectSocket(userKey);
3287
- this.relays.set(username, relay);
3280
+ this.relays.set(userKey, relay);
3288
3281
  this.logger.info(`\uD83D\uDD17`, `attaching services:`, `[${[...this.relayServices.keys()].join(`, `)}]`);
3289
3282
  for (const attachRelay of this.relayServices) {
3290
3283
  const cleanupRelay = attachRelay(relay, userKey);