createMessage method

Message createMessage(
  1. String topicName,
  2. dynamic data,
  3. bool? echo
)

Create message draft without sending it to the server

Implementation

Message createMessage(String topicName, dynamic data, bool? echo) {
  echo ??= true;
  return Message(topicName, data, echo);
}