property WatchSession.webServer

The HTTP + WebSocket server serving the bundle — unstable, this project's own HTTPServer rather than a documented interface.

import type { WatchSession } from './watch.ts';

// Defined, not invoked: needs a live session.
function addRoute(session: WatchSession) {
  session.webServer.get('/fixture.json', (_request, response) => response.json({ ok: true }));
}

Type

Usage

import { type WatchSession } from "lib/api/watch.ts";