Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • message<Message>(message: Message, metadata?: Metadata): Reply<Message>
  • Create a message reply.

    see

    also provided by Reply.message

    Type Parameters

    • Message

      the type of the reply message

    Parameters

    • message: Message

      the message to reply with

    • Optional metadata: Metadata

      optional metadata to pass with the reply

    Returns Reply<Message>

    a message reply

  • Create a forward reply.

    see

    also provided by Reply.forward

    Type Parameters

    • Message

      the type of the reply message

    Parameters

    • method: EffectMethod

      the service call representing the forward

    • message: any

      the message to forward

    • Optional metadata: Metadata

      optional metadata to pass with the forwarded message

    Returns Reply<Message>

    a forward reply

  • Create a failure reply.

    see

    also provided by Reply.failure

    Type Parameters

    • Message

      the type of the reply message

    Parameters

    • description: string

      description of the failure

    • Optional status: GrpcStatus

      the GRPC status, defaults to Unknown

    Returns Reply<Message>

    a failure reply

  • emptyReply<Message>(): Reply<Message>
  • Create a reply that contains neither a message nor a forward nor a failure.

    This may be useful for emitting effects while sending an empty message.

    see

    also provided by Reply.empty

    Type Parameters

    • Message

      the type of the reply message

    Returns Reply<Message>

    an empty reply

Generated using TypeDoc