*Emit core.appServerStarted event after the appserver is booted

This commit is contained in:
Derrick Hammer 2023-04-18 22:47:40 -04:00
parent 3ac8e38f66
commit 1b7ad1a896
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import fastify from "fastify";
import type { FastifyInstance } from "fastify";
import { getKeyPair } from "../lib/seed.js";
import config from "../config";
import { getPluginAPI } from "./plugin";
let app: FastifyInstance;
@ -18,6 +19,8 @@ export async function start() {
});
await app.listen({ port: config.uint("core.appport"), host: "0.0.0.0" });
getPluginAPI().emit("core.appServerStarted");
}
export function get(): FastifyInstance {