rememberDataMessageHandler

fun rememberDataMessageHandler(room: Room, topic: String? = null): DataHandler

Creates a DataHandler that is remembered across recompositions. It listens to the specified topic and emits all the messages through DataHandler.messageFlow. Any messages sent through DataHandler.sendMessage will be sent on the specified topic.