Aster TypeScript 0.3.893
    Preparing search index...

    Function Rpc

    Mark a method as a unary RPC.

    • Mark a method as a unary RPC (single request, single response).

      Parameters

      • Optionaloptions: RpcOptions

      Returns (this: unknown, ...args: any[]) => any

      @Rpc({ timeout: 30, idempotent: true })
      async getUser(req: GetUserRequest): Promise<User> { ... }