onMessageReceived property

(void Function(RtmMessage message, String peerId)?) onMessageReceived
getter/setter pair

Occurs when the local user receives a peer-to-peer message.

Implementation

void Function(RtmMessage message, String peerId)? onMessageReceived;