withTextConversions

Wraps this StompSession to add methods that can convert message bodies using the provided Kotlinx Serialization's StringFormat.

The STOMP frames sent by the returned session have a textual body (of type FrameBody.Text). All frames with a non-null body are sent with a content-type header equal to mediaType.