MCPcopy Create free account
hub / github.com/MagicCube/agentara / stop

Method stop

src/server/server.ts:101–106  ·  view source on GitHub ↗

* Gracefully shut down the server.

()

Source from the content-addressed store, hash-verified

99 * Gracefully shut down the server.
100 */
101 async stop(): Promise<void> {
102 if (this._server) {
103 await this._server.stop(true);
104 this._logger.info("HTTP server stopped");
105 }
106 }
107
108 private _setupStaticServing(): void {
109 if (Bun.env.NODE_ENV === "production") {

Callers

nothing calls this directly

Calls 1

stopMethod · 0.65

Tested by

no test coverage detected