Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Message

A message that is received when a session listens to incoming messages.

Example:

// Read message content as a JSON DataType value
var jsonObj = diffusion.datatypes.json().readValue(message.content).get();
deprecated

since 6.2

        One-way messaging is deprecated in favor of request-response
        messaging. See <a href="messages.html#sendrequest">sendRequest</a>
        and <a href="messages.html#sendrequesttofilter">            sendRequestToFilter</a>. This interface will be removed in a future
        release.

Hierarchy

  • Message

Index

Properties

Properties

content

content: Buffer

The message payload

options

options: SendOptions

The send options

path

path: string

The message path