commonMain.org.hildan.krossbow.websocket.builtin.BuiltInExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of krossbow-websocket-builtin Show documentation
Show all versions of krossbow-websocket-builtin Show documentation
Multiplatform implementation of Krossbow's WebSocket API adapting the platforms' built-in implementations (JS browser's WebSocket, JDK11 client on JVM, NSURLSession on Apple targets).
package org.hildan.krossbow.websocket.builtin
import org.hildan.krossbow.websocket.WebSocketClient
/**
* Gets the [WebSocketClient] implementation that adapts the built-in client from the current platform.
*/
expect fun WebSocketClient.Companion.builtIn(): WebSocketClient