Hyperlinkv0.8.0-beta.28

Hyperlink

Hyperlink.MissingClientProtocolclasssrc/Hyperlink.ts:244

A nodeless Hyperlink.client(tag) was built with no ambient RpcClient.Protocol. Replaces Effect's opaque "Service not found: …/Protocol" die with a remediation message naming the three ways to connect. The Layer still requires RpcClient.Protocol in R (compile-time) and keeps E = never (this replaces a defect, not a typed channel callers already matched); catch via Exit / _tag when probing an unsatisfied build.

errorsHyperlink.clientRpcClient.Protocol
Source src/Hyperlink.ts:24412 lines
export class MissingClientProtocol extends Data.TaggedError("MissingClientProtocol")<{
  readonly resource: string;
}> {
  override get message() {
    return (
      `Hyperlink.client("${this.resource}") has no ambient RpcClient.Protocol. ` +
      `Connect it with Node.connect(node) / Hyperlink.client(tag, node), ` +
      `Hyperlink.clientHttp(tag, target), or Hyperlink.socketClient(node) ` +
      `(or Layer.provide a protocolHttp / protocolWebsocket / protocolIpc layer).`
    );
  }
}
Referenced by 2 symbols