onMessageReceived property

void Function(RuutMessage)? onMessageReceived
getter/setter pair

Triggered when a message created event/message RuutEventMessageType.message_created is received and message doesn't belong to current user after connecting to the ruut websocket. See RuutRepository.listenForEvents

Implementation

void Function(RuutMessage)? onMessageReceived;