Hyperlinkv0.9.0-beta.0

Node

Node.WsListenRequiresWsclasssrc/internal/nodeCore.ts:1090

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

errorswsunixhttpwsServer
export class WsListenRequiresWs extends Data.TaggedError("WsListenRequiresWs")<{
  readonly node: string;
  readonly kind: string;
}> {
  override get message() {
    return (
      `Node.ws requires a local WebSocket Node (loopback ws:// url or address-less mint); ` +
      `"${this.node}" is ${this.kind}. Use Node.unix / Node.http (or ipcServer / httpServer) for other transports.`
    );
  }
}