withMoshi

fun StompSession.withMoshi(moshi: Moshi = Moshi.Builder().build()): TypedStompSession

Wraps this StompSession to add methods that can convert message bodies using the provided Moshi serializer.