Class Communication<P, C>

Type Parameters

Hierarchy

  • Communication

  • Type Parameters

    Parameters

    • name: string

      Identifier of communication

      Category

      General Properties

    • handlerName: string

      The TocketClientBase or TocketServer instance the communication is registered to.

      Category

      General Properties

    • Optional timeout: number

      How long to wait for answers from other endpoints.

      Category

      General Properties

    Returns Communication<P, C>

Primary Controls

errorCatcher: ErrorCatcher = ...

Custom error handling function when main function fails

inbound: MessageTransformer = ...

Sets transformation function applied to incoming messages

method: HandlerMethod<P, C> = ...

Main logic for the socket communication. Potentially async.

outbound: MessageTransformer = ...

transformation function applied to outgoing messages.

General Properties

adapterOptions: Record<string, any> = {}
handlerName: string

The TocketClientBase or TocketServer instance the communication is registered to.

name: string

Identifier of communication

target: undefined | ConnectionFilter<C>

On Clients, default socket of communication

timeout?: number

How long to wait for answers from other endpoints.

transferOptions: OptionsList = ...

Generated using TypeDoc