Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Requester<S, R>

The Requester will take care of handling request and data delievery in a one-way communication fashion.

Type parameters

  • S

    Type of data to send.

  • R

    Type of data to receive.

Hierarchy

  • Requester

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

incoming

incoming: Deferred<R> = null

Deferred promise with the incoming message.

sender

sender: Sender<S> = null

Wrapper function for the underlying logic to send data.

Methods

request

  • request(data: S): Promise<R>
  • Sends a request to the server

    Parameters

    • data: S

      Data to be sent

    Returns Promise<R>

    Promise holding the response data from the server.

Generated using TypeDoc