@mostra/runtime 0.9.0 → 0.10.0
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/bin.js +2879 -8
- package/dist/bin.js.map +1 -1
- package/dist/builder/child/main.js +2 -2
- package/dist/{child-Chiavhdx.js → child-BmNZ4a70.js} +2 -2
- package/dist/{child-Chiavhdx.js.map → child-BmNZ4a70.js.map} +1 -1
- package/dist/deps/child/install.js +1 -1
- package/dist/{directories-mJ1qlVht.js → directories-BLJjeSPD.js} +5 -5
- package/dist/directories-BLJjeSPD.js.map +1 -0
- package/dist/{files-FygSJIzK.js → files-DGeWuE4I.js} +2 -2
- package/dist/{files-FygSJIzK.js.map → files-DGeWuE4I.js.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{instance-EnaZPs14.js → instance-FExcyENK.js} +3341 -396
- package/dist/instance-FExcyENK.js.map +1 -0
- package/package.json +7 -5
- package/src/actions/index.ts +163 -10
- package/src/bin.ts +78 -1
- package/src/gateway/actions.ts +20 -4
- package/src/gateway/browser.ts +118 -95
- package/src/gateway/capabilities.ts +15 -6
- package/src/gateway/index.ts +112 -15
- package/src/gateway/routes.ts +15 -7
- package/src/gc/index.ts +14 -0
- package/src/instance/index.ts +41 -2
- package/src/interaction/ephemeral.ts +32 -23
- package/src/interaction/events.ts +21 -1
- package/src/interaction/imports.ts +317 -0
- package/src/interaction/index.ts +172 -19
- package/src/interaction/outbox.ts +9 -0
- package/src/interaction/results.ts +8 -1
- package/src/interaction/runs.ts +52 -2
- package/src/interaction/submissions.ts +17 -1
- package/src/interaction/tally.ts +129 -0
- package/src/ledger/index.ts +104 -9
- package/src/ledger/migrations.ts +183 -0
- package/src/ledger/types.ts +8 -0
- package/src/link/binding.ts +289 -0
- package/src/link/hosted.ts +65 -0
- package/src/link/http.ts +136 -0
- package/src/link/index.ts +8 -0
- package/src/link/manager.ts +1385 -0
- package/src/link/relay.ts +512 -0
- package/src/live/index.ts +112 -2
- package/src/platform/filesystems.ts +78 -0
- package/src/platform/index.ts +1 -0
- package/src/protocol-server/index.ts +18 -1
- package/src/protocol-server/server.ts +38 -7
- package/src/protocol-server/websocket.ts +161 -0
- package/src/publish/bundle.ts +398 -0
- package/src/publish/manifest.ts +9 -0
- package/src/publish/methods.ts +12 -1
- package/src/publish/publisher.ts +127 -0
- package/src/registry/index.ts +35 -14
- package/src/server/api.ts +439 -0
- package/src/server/auth.ts +613 -0
- package/src/server/config.ts +221 -0
- package/src/server/data.ts +369 -0
- package/src/server/directory.ts +141 -0
- package/src/server/hosted.ts +822 -0
- package/src/server/index.ts +368 -0
- package/src/server/relay.ts +1163 -0
- package/src/share/index.ts +110 -6
- package/dist/directories-mJ1qlVht.js.map +0 -1
- package/dist/instance-EnaZPs14.js.map +0 -1
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The remote server (ARCHITECTURE §15, INTERFACES §18, D165): one process holding many hosted
|
|
3
|
+
* homes behind one listener. It speaks plain HTTP behind a TLS terminator and routes every request
|
|
4
|
+
* by its exact `Host`: the API origin (the network binding, version files, sign-in) or a
|
|
5
|
+
* user-content domain (the hosted shell on its apex, an artifact's pages on its route's label).
|
|
6
|
+
* It runs no artifact code: server code runs on each artifact's owner instance, through the relay.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* const server = await startServer({ data: "/var/lib/mostra", config: readServerConfig(file, env), … });
|
|
10
|
+
* // … mostra-runtime server serves until it is stopped
|
|
11
|
+
* await server.close();
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
import { createServer, type IncomingMessage, type Server, type ServerResponse } from "node:http";
|
|
15
|
+
import type { AddressInfo } from "node:net";
|
|
16
|
+
import { join } from "node:path";
|
|
17
|
+
import type { Duplex } from "node:stream";
|
|
18
|
+
import { getRequestListener } from "@hono/node-server";
|
|
19
|
+
import {
|
|
20
|
+
createDiagnostic,
|
|
21
|
+
type Diagnostic,
|
|
22
|
+
type Duration,
|
|
23
|
+
durationMs,
|
|
24
|
+
RouteId,
|
|
25
|
+
RpcError,
|
|
26
|
+
} from "@mostra/protocol";
|
|
27
|
+
import { locateShell, shellAssetResponse } from "../gateway/index.ts";
|
|
28
|
+
import { appendEvent } from "../interaction/index.ts";
|
|
29
|
+
import type { LedgerOwner } from "../ledger/index.ts";
|
|
30
|
+
import type { Environment, Log } from "../log.ts";
|
|
31
|
+
import { type Api, createApi } from "./api.ts";
|
|
32
|
+
import { type Authorization, createAuthorization } from "./auth.ts";
|
|
33
|
+
import type { RemoteServerConfig } from "./config.ts";
|
|
34
|
+
import { type DataDirectory, type HomeAssembler, openDataDirectory } from "./data.ts";
|
|
35
|
+
import { type HostedHome, openHostedHome } from "./hosted.ts";
|
|
36
|
+
|
|
37
|
+
export { type RemoteServerConfig, readServerConfig } from "./config.ts";
|
|
38
|
+
|
|
39
|
+
/** Options for {@link startServer}. */
|
|
40
|
+
export interface ServerOptions {
|
|
41
|
+
/** The data directory (`--data`). */
|
|
42
|
+
readonly data: string;
|
|
43
|
+
readonly config: RemoteServerConfig;
|
|
44
|
+
/** `host:port` to listen on (`--listen`). Default `127.0.0.1:8080`. */
|
|
45
|
+
readonly listen?: string;
|
|
46
|
+
/** Homes restored from a backup by hand (`--restored`): their incarnations rotate first. */
|
|
47
|
+
readonly restored?: readonly string[];
|
|
48
|
+
readonly runtimeVersion: string;
|
|
49
|
+
readonly owner: LedgerOwner;
|
|
50
|
+
readonly log: Log;
|
|
51
|
+
readonly env: Environment;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** A running remote server. */
|
|
55
|
+
export interface RemoteServer {
|
|
56
|
+
/** Where it listens: `http://host:port`. */
|
|
57
|
+
readonly address: string;
|
|
58
|
+
readonly config: RemoteServerConfig;
|
|
59
|
+
/** Stops listening, closes every hosted home, then the directory, and releases the locks. */
|
|
60
|
+
close(): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** An answer as JSON, with the headers every server answer carries. */
|
|
64
|
+
function json(response: ServerResponse, status: number, body: unknown): void {
|
|
65
|
+
const text = JSON.stringify(body);
|
|
66
|
+
response.writeHead(status, {
|
|
67
|
+
"content-type": "application/json; charset=utf-8",
|
|
68
|
+
"content-length": Buffer.byteLength(text),
|
|
69
|
+
"cache-control": "no-store",
|
|
70
|
+
"cross-origin-resource-policy": "same-origin",
|
|
71
|
+
"referrer-policy": "no-referrer",
|
|
72
|
+
"x-content-type-options": "nosniff",
|
|
73
|
+
});
|
|
74
|
+
response.end(text);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function refusal(response: ServerResponse, status: number, diagnostic: Diagnostic): void {
|
|
78
|
+
json(response, status, diagnostic);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Splits `host:port`, with `[::1]:port` for IPv6. */
|
|
82
|
+
function parseListen(listen: string): { host: string; port: number } {
|
|
83
|
+
const match = /^(\[[^\]]+\]|[^:]+):(\d{1,5})$/.exec(listen);
|
|
84
|
+
if (!match) {
|
|
85
|
+
throw new RpcError(
|
|
86
|
+
createDiagnostic("MOSTRA_REMOTE_CONFIG_INVALID", {
|
|
87
|
+
message: `--listen ${listen} isn't host:port.`,
|
|
88
|
+
}),
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
return { host: (match[1] as string).replace(/^\[|\]$/g, ""), port: Number(match[2]) };
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** Starts the remote server: its data directory, then its listener. */
|
|
95
|
+
export async function startServer(options: ServerOptions): Promise<RemoteServer> {
|
|
96
|
+
const { config, log } = options;
|
|
97
|
+
// The authorization server is made once the directory is open; homes open only after that.
|
|
98
|
+
let auth: Authorization | undefined;
|
|
99
|
+
const shellDir = locateShell(options.env);
|
|
100
|
+
const assembler: HomeAssembler<HostedHome> = {
|
|
101
|
+
assemble: (home) =>
|
|
102
|
+
openHostedHome({
|
|
103
|
+
id: home.id,
|
|
104
|
+
dir: home.dir,
|
|
105
|
+
ledger: home.ledger,
|
|
106
|
+
incarnation: home.incarnation,
|
|
107
|
+
directory: data.directory,
|
|
108
|
+
filesDir: join(options.data, "files"),
|
|
109
|
+
auth: auth as Authorization,
|
|
110
|
+
runtimeVersion: options.runtimeVersion,
|
|
111
|
+
log,
|
|
112
|
+
scheme: config.scheme ?? "https",
|
|
113
|
+
domains: { active: config.domains.active, spares: config.domains.spares ?? [] },
|
|
114
|
+
shellDir,
|
|
115
|
+
relay: {
|
|
116
|
+
waitingRunsPerArtifact: config.relay?.waitingRunsPerArtifact,
|
|
117
|
+
drainPerSecond: config.relay?.drainPerSecond,
|
|
118
|
+
...(config.rateLimits?.perLink?.relayedRuns
|
|
119
|
+
? {
|
|
120
|
+
perLink: {
|
|
121
|
+
count: config.rateLimits.perLink.relayedRuns.count,
|
|
122
|
+
perMs: durationMs(config.rateLimits.perLink.relayedRuns.per as Duration),
|
|
123
|
+
},
|
|
124
|
+
}
|
|
125
|
+
: {}),
|
|
126
|
+
...(options.env["MOSTRA_TEST_RELAY_LIVE_MS"] !== undefined
|
|
127
|
+
? { liveRenewMs: Number(options.env["MOSTRA_TEST_RELAY_LIVE_MS"]) }
|
|
128
|
+
: {}),
|
|
129
|
+
...(options.env["MOSTRA_TEST_RELAY_SWEEP_MS"] !== undefined
|
|
130
|
+
? { sweepMs: Number(options.env["MOSTRA_TEST_RELAY_SWEEP_MS"]) }
|
|
131
|
+
: {}),
|
|
132
|
+
},
|
|
133
|
+
}),
|
|
134
|
+
disassemble: (home) => home.stop(),
|
|
135
|
+
incarnation: (home) => home.incarnation(),
|
|
136
|
+
busy: (home) => home.busy(),
|
|
137
|
+
};
|
|
138
|
+
const data: DataDirectory<HostedHome> = await openDataDirectory({
|
|
139
|
+
dir: options.data,
|
|
140
|
+
runtimeVersion: options.runtimeVersion,
|
|
141
|
+
owner: options.owner,
|
|
142
|
+
log,
|
|
143
|
+
env: options.env,
|
|
144
|
+
assembler,
|
|
145
|
+
...(options.restored !== undefined ? { restored: options.restored } : {}),
|
|
146
|
+
...(config.homes?.idleCloseMinutes !== undefined
|
|
147
|
+
? { idleCloseMs: config.homes.idleCloseMinutes * 60_000 }
|
|
148
|
+
: {}),
|
|
149
|
+
...(config.ledger?.walAutocheckpoint !== undefined
|
|
150
|
+
? { walAutocheckpoint: config.ledger.walAutocheckpoint }
|
|
151
|
+
: {}),
|
|
152
|
+
});
|
|
153
|
+
auth = createAuthorization({
|
|
154
|
+
directory: data.directory,
|
|
155
|
+
config,
|
|
156
|
+
log,
|
|
157
|
+
...(Number(options.env["MOSTRA_TEST_ACCESS_TTL_MS"]) > 0
|
|
158
|
+
? { accessTtlMs: Number(options.env["MOSTRA_TEST_ACCESS_TTL_MS"]) }
|
|
159
|
+
: {}),
|
|
160
|
+
// A new instance link is a hosted event the account's instances see (§18.5).
|
|
161
|
+
linked: ({ homeId, linkId, name }) => {
|
|
162
|
+
void data.home(homeId).then(
|
|
163
|
+
(home) =>
|
|
164
|
+
home.assembled.ledger.write((db) =>
|
|
165
|
+
appendEvent(db, {
|
|
166
|
+
artifactId: null,
|
|
167
|
+
type: "instance.linked",
|
|
168
|
+
actor: { kind: "mostra" },
|
|
169
|
+
payload: { instanceId: linkId, name },
|
|
170
|
+
}),
|
|
171
|
+
),
|
|
172
|
+
(error: unknown) => log.error("server.linked_event_failed", { home: homeId, error }),
|
|
173
|
+
);
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
const api: Api = createApi({
|
|
177
|
+
config,
|
|
178
|
+
auth,
|
|
179
|
+
log,
|
|
180
|
+
filesDir: join(options.data, "files"),
|
|
181
|
+
home: async (id) => (await data.home(id)).assembled,
|
|
182
|
+
touch: (id) => data.touch(id),
|
|
183
|
+
...(Number(options.env["MOSTRA_TEST_GRANT_RECHECK_MS"]) > 0
|
|
184
|
+
? { recheckMs: Number(options.env["MOSTRA_TEST_GRANT_RECHECK_MS"]) }
|
|
185
|
+
: {}),
|
|
186
|
+
});
|
|
187
|
+
const apiHost = new URL(config.apiOrigin).host;
|
|
188
|
+
const domains = new Set([config.domains.active, ...(config.domains.spares ?? [])]);
|
|
189
|
+
|
|
190
|
+
const onRequest = (request: IncomingMessage, response: ServerResponse): void => {
|
|
191
|
+
const host = (request.headers.host ?? "").toLowerCase();
|
|
192
|
+
// Cookies never reach anything on a hosted host (D165 item 8): dropped before routing.
|
|
193
|
+
delete request.headers.cookie;
|
|
194
|
+
const path = (request.url ?? "/").split("?")[0] ?? "/";
|
|
195
|
+
if (host === apiHost) {
|
|
196
|
+
if (request.method === "GET" && path === "/health") {
|
|
197
|
+
json(response, 200, { status: "ok", homes: data.open().length });
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
api.request(request, response, path).catch((error: unknown) => {
|
|
201
|
+
log.error("server.api_failed", { path, error });
|
|
202
|
+
if (!response.headersSent) {
|
|
203
|
+
refusal(
|
|
204
|
+
response,
|
|
205
|
+
500,
|
|
206
|
+
createDiagnostic("MOSTRA_HOST_INTERNAL_ERROR", {
|
|
207
|
+
message: "The server failed to answer.",
|
|
208
|
+
}),
|
|
209
|
+
);
|
|
210
|
+
} else response.destroy();
|
|
211
|
+
});
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
const domain = [...domains].find(
|
|
215
|
+
(candidate) => host === candidate || host.endsWith(`.${candidate}`),
|
|
216
|
+
);
|
|
217
|
+
if (domain === undefined) {
|
|
218
|
+
refusal(
|
|
219
|
+
response,
|
|
220
|
+
421,
|
|
221
|
+
createDiagnostic("MOSTRA_HYGIENE_HOST_REFUSED", {
|
|
222
|
+
message: "This server serves no pages at this host.",
|
|
223
|
+
}),
|
|
224
|
+
);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
// Every hosted answer keeps its page in an agent cluster of its own and out of indexes
|
|
228
|
+
// (ARCHITECTURE §15.6, D161).
|
|
229
|
+
response.setHeader("origin-agent-cluster", "?1");
|
|
230
|
+
response.setHeader("x-robots-tag", "noindex");
|
|
231
|
+
hosted(request, response, host, domain, path).catch((error: unknown) => {
|
|
232
|
+
log.error("server.hosted_failed", { error });
|
|
233
|
+
if (!response.headersSent) {
|
|
234
|
+
refusal(
|
|
235
|
+
response,
|
|
236
|
+
500,
|
|
237
|
+
createDiagnostic("MOSTRA_HOST_INTERNAL_ERROR", {
|
|
238
|
+
message: "The server failed to answer.",
|
|
239
|
+
}),
|
|
240
|
+
);
|
|
241
|
+
} else response.destroy();
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
const notServed = (response: ServerResponse): void =>
|
|
246
|
+
refusal(
|
|
247
|
+
response,
|
|
248
|
+
404,
|
|
249
|
+
createDiagnostic("MOSTRA_HYGIENE_NOT_SERVED", { message: "Nothing is served at this path." }),
|
|
250
|
+
);
|
|
251
|
+
|
|
252
|
+
/** The shell's own files, the same on every domain's apex. */
|
|
253
|
+
const assets = getRequestListener(
|
|
254
|
+
async (request: Request) =>
|
|
255
|
+
(shellDir === undefined ? undefined : await shellAssetResponse(shellDir, request)) ??
|
|
256
|
+
new Response(
|
|
257
|
+
JSON.stringify(
|
|
258
|
+
createDiagnostic("MOSTRA_HYGIENE_NOT_SERVED", { message: "No shell file at this path." }),
|
|
259
|
+
),
|
|
260
|
+
{
|
|
261
|
+
status: 404,
|
|
262
|
+
headers: { "content-type": "application/json", "cache-control": "no-store" },
|
|
263
|
+
},
|
|
264
|
+
),
|
|
265
|
+
{ overrideGlobalObjects: false },
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
/** A route of the directory: its home and ID, by ID or by label. */
|
|
269
|
+
const routeBy = (column: "id" | "label", value: string) =>
|
|
270
|
+
data.directory.read((db) =>
|
|
271
|
+
db.get<{ id: string; home_id: string }>(
|
|
272
|
+
`SELECT id, home_id FROM artifact_route WHERE ${column} = ?`,
|
|
273
|
+
value,
|
|
274
|
+
),
|
|
275
|
+
);
|
|
276
|
+
|
|
277
|
+
/** A request on a user-content domain: the shell on its apex, a route's frames on its label. */
|
|
278
|
+
const hosted = async (
|
|
279
|
+
request: IncomingMessage,
|
|
280
|
+
response: ServerResponse,
|
|
281
|
+
host: string,
|
|
282
|
+
domain: string,
|
|
283
|
+
path: string,
|
|
284
|
+
): Promise<void> => {
|
|
285
|
+
if (host === domain) {
|
|
286
|
+
if (path.startsWith("/_mostra/shell/assets/")) {
|
|
287
|
+
await assets(request, response);
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
const match = /^\/a\/(rte_[0-9A-HJKMNP-TV-Z]{26})(?:\/|$)/.exec(path);
|
|
291
|
+
const route =
|
|
292
|
+
match?.[1] !== undefined && RouteId.is(match[1]) ? routeBy("id", match[1]) : undefined;
|
|
293
|
+
if (!route) {
|
|
294
|
+
notServed(response);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
const home = await data.home(route.home_id);
|
|
298
|
+
await home.assembled.serve(request, response, { kind: "shell", domain, routeId: route.id });
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
// One DNS label under the domain: a route's label, never issued twice (§18.4).
|
|
302
|
+
const label = host.slice(0, host.length - domain.length - 1);
|
|
303
|
+
const route = /^[0-9a-hjkmnp-tv-z]{26}$/.test(label) ? routeBy("label", label) : undefined;
|
|
304
|
+
if (!route) {
|
|
305
|
+
refusal(
|
|
306
|
+
response,
|
|
307
|
+
421,
|
|
308
|
+
createDiagnostic("MOSTRA_HYGIENE_HOST_REFUSED", {
|
|
309
|
+
message: "This server serves no pages at this host.",
|
|
310
|
+
}),
|
|
311
|
+
);
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
const home = await data.home(route.home_id);
|
|
315
|
+
await home.assembled.serve(request, response, { kind: "frame", domain, routeId: route.id });
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const listener: Server = createServer({ maxHeaderSize: 64 * 1024 }, onRequest);
|
|
319
|
+
listener.keepAliveTimeout = 305_000;
|
|
320
|
+
listener.headersTimeout = 30_000;
|
|
321
|
+
listener.requestTimeout = 120_000;
|
|
322
|
+
listener.on("upgrade", (request: IncomingMessage, socket: Duplex, head: Buffer) => {
|
|
323
|
+
const host = (request.headers.host ?? "").toLowerCase();
|
|
324
|
+
const path = (request.url ?? "/").split("?")[0] ?? "/";
|
|
325
|
+
if (host === apiHost) {
|
|
326
|
+
api.upgrade(request, socket, head, path);
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
socket.end("HTTP/1.1 404 Not Found\r\nconnection: close\r\ncontent-length: 0\r\n\r\n");
|
|
330
|
+
});
|
|
331
|
+
const { host, port } = parseListen(options.listen ?? "127.0.0.1:8080");
|
|
332
|
+
try {
|
|
333
|
+
await new Promise<void>((resolve, reject) => {
|
|
334
|
+
listener.once("error", reject);
|
|
335
|
+
listener.listen(port, host, () => {
|
|
336
|
+
listener.off("error", reject);
|
|
337
|
+
resolve();
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
} catch (error) {
|
|
341
|
+
await data.close();
|
|
342
|
+
throw new RpcError(
|
|
343
|
+
createDiagnostic("MOSTRA_ENV_BIND_FAILED", {
|
|
344
|
+
message: `The server can't listen on ${host}:${port}: ${(error as NodeJS.ErrnoException).code ?? (error as Error).message}.`,
|
|
345
|
+
}),
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
const bound = listener.address() as AddressInfo;
|
|
349
|
+
const address = `http://${bound.family === "IPv6" ? `[${bound.address}]` : bound.address}:${bound.port}`;
|
|
350
|
+
log.info("server.listening", { address, apiOrigin: config.apiOrigin, domains: [...domains] });
|
|
351
|
+
let closing: Promise<void> | undefined;
|
|
352
|
+
return {
|
|
353
|
+
address,
|
|
354
|
+
config,
|
|
355
|
+
close() {
|
|
356
|
+
closing ??= (async () => {
|
|
357
|
+
api.close();
|
|
358
|
+
await new Promise<void>((resolve) => {
|
|
359
|
+
listener.close(() => resolve());
|
|
360
|
+
listener.closeAllConnections();
|
|
361
|
+
});
|
|
362
|
+
await data.close();
|
|
363
|
+
log.info("server.stopped", {});
|
|
364
|
+
})();
|
|
365
|
+
return closing;
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
}
|