@volter/teams 0.1.42 → 0.1.43

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.
Files changed (2) hide show
  1. package/machine-core.mjs +2 -1
  2. package/package.json +1 -1
package/machine-core.mjs CHANGED
@@ -263,7 +263,8 @@ export class MachineCore extends EventEmitter {
263
263
  return;
264
264
  }
265
265
  const index = this.nextConnection++;
266
- const entry = { channel, admitted: LOCAL_OPERATOR, principal: 'local' };
266
+ // The socket stays on the entry: who is on its other end is read from the kernel, not from what the client says.
267
+ const entry = { channel, admitted: LOCAL_OPERATOR, principal: 'local', socket };
267
268
  this.connections.set(index, entry);
268
269
  channel.on('stream', (stream, accept, refuse) => this.#routeStream(index, entry, stream, accept, refuse));
269
270
  channel.on('close', () => { this.connections.delete(index); this.connectionClosed(index); });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/teams",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "type": "module",
5
5
  "description": "Volter Teams, the neutral team plane: machine identity and daemon core, the local door and server link, admission from machine grants, product doors, and the Teams server's neutral routes (company RFC 0008).",
6
6
  "license": "MIT",