@hadoku/game-server 0.1.146 → 0.1.148

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.
@@ -97,7 +97,7 @@ export function attachSessions(io, deps) {
97
97
  }
98
98
  const decision = claims.claim(keyOf(participantId, room), tabId, socket.id, { take: request.take === true });
99
99
  if (decision.type === 'held') {
100
- log({ evt: 'session-held', room, participantId, socketId: socket.id, take: request.take === true });
100
+ log({ evt: 'session-held', room, participantId, socketId: socket.id, take: request.take === true, tabId: tabId.slice(0, 8), holderTabId: decision.holderTabId.slice(0, 8), holderSockets: claims.connections(keyOf(participantId, room)).map((id) => `${id}:${io.sockets.sockets.get(id)?.conn.transport.name ?? 'gone'}`), idleMs: Date.now() - decision.lastSeen });
101
101
  answer({ room, status: 'held' });
102
102
  return;
103
103
  }
@@ -127,7 +127,7 @@ export function attachSessions(io, deps) {
127
127
  return true;
128
128
  const decision = claims.claim(keyOf(participantId, room), tabId, socket.id);
129
129
  if (decision.type === 'held') {
130
- log({ evt: 'session-elsewhere', room, participantId, socketId: socket.id });
130
+ log({ evt: 'session-elsewhere', room, participantId, socketId: socket.id, tabId: tabId.slice(0, 8), holderTabId: decision.holderTabId.slice(0, 8), holderSockets: claims.connections(keyOf(participantId, room)).map((id) => `${id}:${io.sockets.sockets.get(id)?.conn.transport.name ?? 'gone'}`), idleMs: Date.now() - decision.lastSeen });
131
131
  return false;
132
132
  }
133
133
  if (decision.type === 'taken')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-server",
3
- "version": "0.1.146",
4
- "gitHead": "f801fb0993e84eaed7c4472993a11b21276052c1",
3
+ "version": "0.1.148",
4
+ "gitHead": "afa27e0259be9183567f91d2721182e87f533d1a",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The server parts any hosted game shares, above the kernel: the app config and edge auth, the room core (identity, seats, sessions, membership, the room list, the generic room routes), match hosting (the host contract, local and remote JVMs, placement, the start queue, recordings, the in-process and relay runtimes), streams, erase, telemetry and usage. Knows no game; Magic plugs in from apps/server. MIT; imports only node built-ins, express, socket.io, @wolffm/* and the platform packages.",
@@ -17,9 +17,9 @@
17
17
  "play/remote/"
18
18
  ],
19
19
  "dependencies": {
20
- "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.146",
21
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.146",
22
- "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.179",
20
+ "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.148",
21
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.148",
22
+ "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.181",
23
23
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.2.2",
24
24
  "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.143",
25
25
  "@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.143",