Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Connection

The interface for describing the connection between plugins and main side.

Hierarchy

Implemented by

Index

Properties

Methods

Properties

Readonly reader

reader: MessageReader

Readonly writer

writer: MessageWriter

Methods

dispose

  • dispose(): void

forward

  • forward(to: Connection, map?: (message: Message) => Message): void
  • Allows to forward messages to another connection.

    Parameters

    • to: Connection

      the connection to forward messages

    • Optional map: (message: Message) => Message

      the function in which the message can be changed before forwarding

        • (message: Message): Message
        • Parameters

          • message: Message

          Returns Message

    Returns void