Mark a method as a unary RPC.
Mark a method as a unary RPC (single request, single response).
Optional
@Rpc({ timeout: 30, idempotent: true })async getUser(req: GetUserRequest): Promise<User> { ... } Copy
@Rpc({ timeout: 30, idempotent: true })async getUser(req: GetUserRequest): Promise<User> { ... }
Mark a method as a unary RPC.