SpringSockJSWebSocketClient

Deprecated

The SpringSockJSWebSocketClient object is made redundant by the public adapter extension.asKrossbowWebSocketClient(), prefer using that instead.

Replace with

import org.springframework.web.socket.client.standard.StandardWebSocketClient
import org.springframework.web.socket.sockjs.client.SockJsClient
import org.springframework.web.socket.sockjs.client.RestTemplateXhrTransport
import org.springframework.web.socket.sockjs.client.WebSocketTransport
import org.hildan.krossbow.websocket.spring.asKrossbowWebSocketClient
SockJsClient(listOf(WebSocketTransport(StandardWebSocketClient()), RestTemplateXhrTransport())).asKrossbowWebSocketClient()

Functions

Link copied to clipboard
open suspend override fun connect(url: String, headers: Map<String, String>): WebSocketConnectionWithPingPong