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

setInfoReceiver

open fun setInfoReceiver(infoReceiver: InfoReceiver): Unit

Configure the InfoReceiver to use to perform the SockJS "Info" request before the SockJS session starts.

If the list of transports provided to the constructor contained an XhrTransport or an implementation of InfoReceiver that instance would have been used to initialize this property, or otherwise it defaults to RestTemplateXhrTransport.

Parameters

infoReceiver - the transport to use for the SockJS "Info" request