registerTextStreamHandler

abstract fun registerTextStreamHandler(topic: String, handler: TextStreamHandler)

Registers a text stream handler for topic. Only one handler can be set for a particular topic at a time.

Throws

if a topic is already set.