withBinaryConversions
fun StompSession.withBinaryConversions(format: BinaryFormat, mediaType: String): StompSessionWithKxSerialization(source)
Wraps this StompSession to add methods that can convert message bodies using the provided Kotlinx Serialization's BinaryFormat.
The STOMP frames sent by the returned session have a binary body (of type FrameBody.Binary). All frames with a non-null body are sent with a content-type
header equal to mediaType.