withMoshi

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

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