TextStreamHandler

typealias TextStreamHandler = (reader: TextStreamReceiver, fromIdentity: Participant.Identity) -> Unit

Handles an incoming text stream.

Called on a background thread, and concurrently with itself when streams overlap, so it must be safe to run on any thread and alongside its own earlier invocations.