public static interface Messaging.MessageStream extends Stream
If the stream is removed, onClose
will be
called.
If the session is closed, onError
will be called with the reason
ErrorReason.SESSION_CLOSED
.
Modifier and Type | Interface and Description |
---|---|
static class |
Messaging.MessageStream.Default
Default
Messaging.MessageStream implementation. |
Modifier and Type | Method and Description |
---|---|
void |
onMessageReceived(String topicPath,
Content content,
ReceiveContext context)
This indicates a message has been received for a specific path.
|
void onMessageReceived(String topicPath, Content content, ReceiveContext context)
How this originates and what the content contains is dependent on the sender of the message.
topicPath
- the path to which the message was sentcontent
- the message content. If the content is known to be of
a certain data type
then
DataType.readValue(Bytes)
may be used to convert it.context
- the receive contextCopyright © 2016 Push Technology Ltd. All Rights Reserved.