Hyperlinkv0.8.0-beta.28

Node

Node.WsListenRequiresWsclasssrc/internal/nodeCore.ts:1001

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.`
    );
  }
}
Referenced by 1 symbols