Messages
Sending messages in Threads.
Sample code on this page is based on the initial assumptions.
Messages Inside Threads
Messages inside Threads are sent in binary format. Before sending a message, you need to decide on the message format.
For more information about the Threads architecture and best practices for sending messages, visit the Threads Documentation.
Sending Messages
Sending a simple message to the given Thread:
Get the Thread's Messages
To get a list of messages inside a Thread, use getMessages
method. Because data inside messages is in core::Buffer
you have to deserialize it to human-readable string.
PrivMX Endpoint library takes care of encrypting your data before sending it to PrivMX Bridge.
Reading the messages of the Thread (limited to the 100 newest entries as described by the defaultListQuery
object):
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.