sendMessage method

dynamic sendMessage(
  1. String message,
  2. String nickname
)

Sends the sendMessage to the WebSocket server

Implementation

sendMessage(String message, String nickname) {
  final Map<String, String> sendMessageParams = {
    'message':
        "{\"to\":[],\"data\":\"{\\\"message\\\":\\\"$message\\\",\\\"nickname\\\":\\\"$nickname\\\"}\",\"type\":\"signal:chat\"}",
  };
  sendJson(JsonConstants.sendMessage, sendMessageParams);
}