Skip to content

Krossbow with SockJS

Krossbow allows you to use SockJS-compatible clients as transport for STOMP.

The krossbow-websocket-sockjs is a multiplatform facade implementing Krossbow's web socket interface by relying on different SockJS implementations. Here are the backing implementations for the different platforms:

Using a SockJS client requires a SockJS-enabled server.

Usage with StompClient

To use this client, just call SockJSClient() and the relevant platform-specific client will be instantiated for you:

val client = StompClient(SockJSClient())

Dependency information

You will need to declare the following Gradle dependency to use the SockJSClient:

implementation("org.hildan.krossbow:krossbow-websocket-sockjs:7.0.0")