mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
13 lines
501 B
TypeScript
13 lines
501 B
TypeScript
import type { PluginContext } from "@termix/plugin-sdk/backend";
|
|
import { createSerialSession } from "./session.js";
|
|
|
|
export async function activate(ctx: PluginContext): Promise<void> {
|
|
ctx.ws.route("/console", createSerialSession(ctx));
|
|
ctx.log.info("Serial console mounted at /plugin-ws/serial/console");
|
|
}
|
|
|
|
export async function deactivate(): Promise<void> {
|
|
// The WS route and every open socket are torn down by core: see
|
|
// src/backend/plugins/ws.ts. Nothing here outlives activate().
|
|
}
|