Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JsonChannel

name

JsonChannel

Hierarchy

  • JsonChannel

Index

Methods

closeChannel

  • closeChannel(): void
  • Closes the channel to the Liberator. This will result in a corresponding call to onChannelClose declared in ChannelListener on the DataSource. The delay before onChannelClose is called is defined by the Liberator configuration item, active-discard-timeout.

    Returns void

getSubject

  • getSubject(): string
  • Returns the subject name to which the channel relates.

    Returns string

    The subject of this channel.

send

  • Sends object as JSON to the channel subject

    Parameters

    • obj: any

      the object to send in JSON format (using the installed JsonHandler to serialize the object to JSON)

    • commandListener: CommandListener

      optional callback for command completion (can set to null).

    Returns void

Generated using TypeDoc