onMessageReceived property
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;