sendNotice method

Channel sendNotice(
  1. String message, {
  2. MimeType mimeType = MimeType.text,
  3. dynamic userInfo,
})

공지사항 발송

Implementation

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

  return this;
}