add Message Delivered Listener
Adds a listener for messages being successfully delivered to the server.
This is an alternative to using the messageDeliveredFlow for developers who prefer callback-based APIs over Kotlin's Flow API.
Parameters
listener
The listener to add.