/** * WebSocket upgrade handler — browser VNC session. * Pipes binary RFB between the panel browser and a TCP RFB endpoint * (local TigerVNC or remote client target). Same role as websockify, * in-process so users never need 127.0.0.1:novnc in their browser. */ import type { Server as HttpServer } from 'node:http'; import type { Server as HttpsServer } from 'node:https'; import type { VncSessionTicketStore } from 'ysk-server-core'; import type { AppContext } from '../app-context.js'; export declare function attachVncWebSocket(server: HttpServer | HttpsServer, ctx: AppContext, tickets: VncSessionTicketStore): void; /** Test/ops helper — how many live browser VNC pipes are open. */ export declare function vncLiveSessionCount(): number; //# sourceMappingURL=ws-handler.d.ts.map