MCPcopy Create free account
hub / github.com/Effect-TS/effect / ServerClient

Class ServerClient

packages/effect/src/unstable/rpc/Rpc.ts:187–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 * @since 4.0.0
186 */
187export class ServerClient {
188 readonly id: number
189 annotations: Context.Context<never>
190 constructor(id: number) {
191 this.id = id
192 this.annotations = Context.empty()
193 }
194 annotate<I, S>(
195 tag: Context.Key<I, S>,
196 value: NoInfer<S>
197 ): ServerClient {
198 this.annotations = Context.add(this.annotations, tag, value)
199 return this
200 }
201}
202
203/**
204 * Represents the server-side implementation of an RPC.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected