/websockt

A simple WebSocket client for Kotlin.

Primary LanguageKotlinApache License 2.0Apache-2.0

Websockt

Websockt is a simple WebSocket client library for Kotlin.

Usage

Dependencies

The latest artifacts are available on Maven Central.

Add the websockt dependency to your build.gradle.kts.

implementation("com.divpundir.websockt:websockt:$version")

Add one of the available websocket engines to the dependencies. This example uses the OkHttp engine.

implementation("com.divpundir.websockt:engine-okhttp:$version")

Pick an adapter of your choice and add it to the dependencies.

implementation("com.divpundir.websockt:adapter-rxjava2:$version")

Refer the documentation of the different adapters to learn how to use them.