Class Index | File Index

Classes


Class MessagingJSON.Message


Defined in: jsonmsg.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
An application message, sent or received.
Field Summary
Field Attributes Field Name and Description
 
mandatory The name of the destination to which the message is to be sent (for messages about to be sent) or the name of the destination from which the message has been received.
 
read only The payload as an ArrayBuffer.
 
read only The payload as a string if the payload consists of valid UTF-8 characters.
 
qos
The reliability setting used to deliver the message.
Class Detail
MessagingJSON.Message(payload)
An application message, sent or received.

All attributes may be null, which implies the default values.

Parameters:
{String|ArrayBuffer} payload
The message data to be sent.

Field Detail
{string} destinationName
mandatory The name of the destination to which the message is to be sent (for messages about to be sent) or the name of the destination from which the message has been received. (for messages received by the onMessageArrived function).


{ArrayBuffer} payloadBytes
read only The payload as an ArrayBuffer.


{string} payloadString
read only The payload as a string if the payload consists of valid UTF-8 characters.

{number} qos
The reliability setting used to deliver the message. Applicable for destinations of type Topic only.
0 Best effort (default).
1 At least once.
2 Exactly once.


Documentation generated by JsDoc Toolkit 2.4.0 on Wed May 25 2016 22:00:50 GMT+0100 (BST)