rtcRoom$onUserMessageReceived$message method

FutureOr<void> rtcRoom$onUserMessageReceived$message(
  1. ByteRTCGameRoom rtcRoom,
  2. NSString uid,
  3. NSString message
)

@detail callback @author hanchenchen.c @brief Receive text messages (P2P) from other users in the room. @param rtcRoom ByteRTCGameRoom instance. @param uid The user ID of the sender of the message. @param message The content of the received text message.

Implementation

FutureOr<void> rtcRoom$onUserMessageReceived$message(
    ByteRTCGameRoom rtcRoom, NSString uid, NSString message) async {}