sendMessage method
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);
}