listen Unread Messages
abstract suspend fun listenUnreadMessages(serviceEndpointUri: String, onMessageCallback: OnMessageCallback)(source)
Listens for unread messages from a specified WebSocket service endpoint.
Parameters
service Endpoint Uri
The URI of the service endpoint. It should be a valid WebSocket URI.
on Message Callback
A callback function that is invoked when a message is received. This function is responsible for handling the incoming message.