sendDataMessage
Send message via data channel
Parameters
topic
: String - topic the message is sent to
data
: Any - data payload, it can be ByteArray, String or other serializable object, which will be convert to ByteArray
lifetimeMs
: Int - the milliseconds of lifetime that is available to late subscribers
Throws
InvalidParameterException
when topic is not match regex ^[a-zA-Z0-9_-]{1,36}$
, or data size is over 2kb, or lifetime ms is negative