subscribeText
Subscribes and returns a Flow of text message bodies that unsubscribes automatically when the collector is done or cancelled. The returned flow can be collected only once.
The received MESSAGE frames' bodies are expected to be decodable as text: they must come from a textual web socket frame, or their content-type
header should start with text/
or contain a charset
parameter (see StompFrame.bodyAsText). If a received frame is not decodable as text, an exception is thrown.
Frames without a body are indistinguishable from frames with a 0-length body, and therefore result in an empty string in the subscription flow.
See the general StompSession documentation for more details about subscription flows, suspension and receipts.