withJsonConversions
fun StompSession.withJsonConversions(json: Json = Json, mediaType: String = "application/json;charset=utf-8", configure: JsonBuilder.() -> Unit = {}): StompSessionWithKxSerialization(source)
Wraps this StompSession to add methods that can convert message bodies using the configuration from the provided Kotlinx Serialization's json, optionally adjusted with configure.
All frames with a non-null body are sent with a content-type
header equal to mediaType (defaulting to "application/json;charset=utf-8").