sendMessage method

Channel sendMessage(
  1. String message, {
  2. MimeType mimeType = MimeType.text,
})

메시지 발송

Implementation

Channel sendMessage(
  String message, {
  MimeType mimeType = MimeType.text,
}) {
  _send({
    "type": "send",
    "address": "c2s.send.message",
    "headers": {},
    "body": {
      "nickName": user?.nickName,
      "roomId": roomId,
      "clientKey": user?.clientKey,
      "message": message,
      "mimeType": mimeType.type,
    },
  });

  return this;
}