RawMessage

RawMessage

Represents a raw message.

Constructor

new RawMessage(payload)

Description:
  • Creates an instance of the RawMessage class.
Source:
Parameters:
Name Type Description
payload The message payload.

Methods

getPayload()

Description:
  • Gets the payload of the raw message.
Source:
Returns:
The message payload.

setPayload(payload)

Description:
  • Sets the payload of the raw message.
Source:
Parameters:
Name Type Description
payload The message payload to set.
Returns:
The updated instance of the RawMessage.

toJson()

Description:
  • Convert the message to JSON object
Source:
Returns:
The message in JSON format