Name

JsonChannel

Hierarchy

  • JsonChannel

Constructors

Methods

Constructors

Methods

  • 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

  • Returns the subject name to which the channel relates.

    Returns string

    The subject of this channel.

  • 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