| 185 | * @since 4.0.0 |
| 186 | */ |
| 187 | export 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. |
nothing calls this directly
no outgoing calls
no test coverage detected