WebSockets

Estimated reading time: 1 minute

This feature enables bi-directional WebSocket connections with the server. You can read more about it in its dedicate WebSockets page.

This feature is defined in the method io.ktor.client.features.websocket.ws in the artifact io.ktor:ktor-client-websocket:$ktor_version.
dependencies { compile "io.ktor:ktor-client-websocket:$ktor_version" }
<project> ... <dependencies> <dependency> <groupId>io.ktor</groupId> <artifactId>ktor-client-websocket</artifactId> <version>${ktor.version}</version> <scope>compile</scope> </dependency> </dependencies> </project>