@hadoku/game-server 0.1.148 → 0.1.150

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.
@@ -129,6 +129,12 @@ export interface GameSession<Line, Cmd> {
129
129
  * with no asks of its own (the toy game's) still implements it, trivially, to prove the hook fits.
130
130
  */
131
131
  replayed(command: Cmd): void;
132
+ /**
133
+ * The replay is over and the host is attached: whatever the session kept undecided while replaying
134
+ * (`ForgeSession`'s asks the earlier server never answered) goes live now. A session that decides
135
+ * nothing during a replay implements it as nothing.
136
+ */
137
+ resumed(): void;
132
138
  /**
133
139
  * The match is ending for good — stopped on purpose, failed, or its host exited — and this is
134
140
  * the session's one chance to sweep: `ForgeSession.ended` is `logFrames`/`closeAllAsks`/
@@ -73,6 +73,7 @@ export class HostedMatch extends MatchShell {
73
73
  finally {
74
74
  this.replaying = false;
75
75
  }
76
+ this.game.resumed();
76
77
  this.syncClock();
77
78
  this.remember();
78
79
  this.deps.log({
@@ -119,6 +119,8 @@ export declare class RelaySession implements GameSession<RelayLine, RelayCommand
119
119
  * keeps no replay log and opens no asks of its own, so there is nothing
120
120
  * to close. */
121
121
  replayed(_command: RelayCommand): void;
122
+ /** Nothing is kept undecided through a replay, so nothing goes live after one. */
123
+ resumed(): void;
122
124
  /**
123
125
  * The session's sweep at stop, fail or exit — `null` for a stop, same as
124
126
  * the interface's own doc. `finish(null)` already covers "every seat
@@ -171,6 +171,10 @@ export class RelaySession {
171
171
  replayed(_command) {
172
172
  // Deliberately empty.
173
173
  }
174
+ /** Nothing is kept undecided through a replay, so nothing goes live after one. */
175
+ resumed() {
176
+ // Deliberately empty.
177
+ }
174
178
  /**
175
179
  * The session's sweep at stop, fail or exit — `null` for a stop, same as
176
180
  * the interface's own doc. `finish(null)` already covers "every seat
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-server",
3
- "version": "0.1.148",
4
- "gitHead": "afa27e0259be9183567f91d2721182e87f533d1a",
3
+ "version": "0.1.150",
4
+ "gitHead": "0768a969feb1f25c32598ed6629f1ed6768c5f6f",
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.148",
21
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.148",
22
- "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.181",
20
+ "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.150",
21
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.150",
22
+ "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.183",
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",