testing/cross_backend/testing_server_core.ts view source
BuildTestingAppContext import type {BuildTestingAppContext} from '@fuzdev/fuz_app/testing/cross_backend/testing_server_core.js'; What the core hands a StartTestingServerOptions.build_app seam.
prepare_websocket
Prepare the runtime adapter's WS upgrade helper and return the factory
to pass to create_app_server as create_upgrade_websocket. The core
runs the adapter's attach step once the server is bound, so a build
that mounts ws_endpoints needs nothing else. An HTTP-only build
doesn't call it. Call it at most once per build: the Node adapter
attaches one upgrade listener per preparation, and two would race on
the shared socket.
type (options?: PrepareWebsocketOptions | undefined): (app: Hono<BlankEnv, BlankSchema, "/">) => UpgradeWebSocket<unknown, any, WSEvents<unknown>>
options?
(app: Hono<BlankEnv, BlankSchema, "/">) => UpgradeWebSocket<unknown, any, WSEvents<unknown>>