callNow
uses #tcm/host (call)
The call being answered, or why what can't be used here.
import { call } from "#tcm/host"; import type { ServerCall } from "#tcm/host"; export function callNow(what: string): ServerCall { const c = call(); if (!c) throw new Error( `${what} only works inside a server function called from the browser (tcm dev / tcm start)`, ); return c; }