listenUnreadMessages

abstract suspend fun listenUnreadMessages(serviceEndpointUri: String, onMessageCallback: OnMessageCallback)(source)

Listens for unread messages from a specified WebSocket service endpoint.

Parameters

serviceEndpointUri

The URI of the service endpoint. It should be a valid WebSocket URI.

onMessageCallback

A callback function that is invoked when a message is received. This function is responsible for handling the incoming message.