Hyperlinkv0.8.0-beta.28

Node

Node.HttpListenRequiresHttpclasssrc/internal/nodeCore.ts:980

http only speaks local Http. The Node (or Tag-bound Node) was IpcSocket / WebSocket (or a non-loopback URL) — use unix / ws, or httpServer for custom binds.

errorshttpunixwshttpServer
export class HttpListenRequiresHttp extends Data.TaggedError(
  "HttpListenRequiresHttp",
)<{
  readonly node: string;
  readonly kind: string;
}> {
  override get message() {
    return (
      `Node.http requires a local Http Node (loopback url or address-less mint); ` +
      `"${this.node}" is ${this.kind}. Use Node.unix / Node.ws (or httpServer / wsServer) for other transports.`
    );
  }
}
Referenced by 1 symbols