Hyperlinkv0.9.0-beta.0

Hyperlink

Hyperlink.MissingClientProtocolclasssrc/Hyperlink.ts:256

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:25611 lines
export class MissingClientProtocol extends Data.TaggedError("MissingClientProtocol")<{
  readonly serviceKey: string;
}> {
  override get message() {
    return (
      `Hyperlink.client("${this.serviceKey}") has no ambient RpcClient.Protocol. ` +
      `Connect it with Hyperlink.connect(tag, protocolHttp|protocolWebsocket|protocolIpc(target)), ` +
      `Hyperlink.client(tag, node), Hyperlink.http|ws|unix|nPipe(node), or Node.connect(node).`
    );
  }
}
Referenced by 1 symbols