@hadoku/game-server 0.1.153 → 0.1.155
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.
package/dist/play/host.js
CHANGED
|
@@ -390,6 +390,14 @@ export function jvmHostFactory(config, options = {}) {
|
|
|
390
390
|
idle: null,
|
|
391
391
|
};
|
|
392
392
|
jvms.add(jvm);
|
|
393
|
+
// A launch still waiting on its runtime (a claw's install) is not silent yet: its clock starts with the boot.
|
|
394
|
+
if (jvm.livenessArmed && transport.onBooting !== undefined) {
|
|
395
|
+
jvm.livenessArmed = false;
|
|
396
|
+
transport.onBooting(() => {
|
|
397
|
+
jvm.lastHeard = Date.now();
|
|
398
|
+
jvm.livenessArmed = true;
|
|
399
|
+
});
|
|
400
|
+
}
|
|
393
401
|
transport.onLine((text) => onText(jvm, text));
|
|
394
402
|
transport.onExit((reason) => onJvmExit(jvm, reason));
|
|
395
403
|
watchLiveness(jvm);
|
|
@@ -12,6 +12,12 @@ export interface JvmTransport {
|
|
|
12
12
|
kill(): void;
|
|
13
13
|
/** Let go without killing (coordinator restart); a later `attach` takes it back. */
|
|
14
14
|
release(): void;
|
|
15
|
+
/**
|
|
16
|
+
* A launch that does not boot at once (a claw's, which waits for this server's runtime to be packed
|
|
17
|
+
* and installed there) says here when the boot begins: the JVM's silence is counted from then. Absent,
|
|
18
|
+
* the boot begins with the launch.
|
|
19
|
+
*/
|
|
20
|
+
onBooting?(listener: () => void): void;
|
|
15
21
|
}
|
|
16
22
|
export interface JvmLauncher {
|
|
17
23
|
/** Boot a new `--host` JVM. Its first line is `warm` (or it exits). */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/game-server",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.155",
|
|
4
|
+
"gitHead": "1a2758d078da3deba59d105b7ee780fda3d8231e",
|
|
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.
|
|
21
|
-
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.
|
|
22
|
-
"@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.
|
|
20
|
+
"@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.155",
|
|
21
|
+
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.155",
|
|
22
|
+
"@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.188",
|
|
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",
|