Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.15 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.15 KB

Websockt

License Kotlin Maven Central

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.