Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ServiceSender<Request, Response>

A type allowing to send requests to a specific service

Type parameters

  • Request

  • Response

Hierarchy

  • ServiceSender

Index

Methods

Methods

send

  • send(request: Request, callback?: ServiceCallback<Response>): Promise<function>
  • Send a request to the service

    Parameters

    • request: Request

      the request to send

    • Optional callback: ServiceCallback<Response>

      the callback function that will be called when a response is received

    Returns Promise<function>

    a function that allows to discard the conversation associated with the request