spring-framework / org.springframework.web.socket.sockjs.client / SockJsClient / setMessageCodec

setMessageCodec

open fun setMessageCodec(messageCodec: SockJsMessageCodec): Unit

Set the SockJsMessageCodec to use.

By default org.springframework.web.socket.sockjs.frame.Jackson2SockJsMessageCodec is used if Jackson is on the classpath.