onRecvCustomCmdMsg property

(void Function(String userId, int cmdId, int seq, String message)?) onRecvCustomCmdMsg
final

Receipt of Custom Message

When a user in a room uses sendCustomCmdMsg to send a custom message, other users in the room can receive the message through the onRecvCustomCmdMsg callback.

  • Parameters:
    • cmdID(int):
      • Command ID.
    • message(String):
      • Message data.
    • seq(int):
      • Message serial number.
    • userId(String):
      • User ID.

Implementation

final void Function(String userId, int cmdId, int seq, String message)? onRecvCustomCmdMsg;