0.5.1-SNAPSHOT: crypto2 upgraded

This commit is contained in:
sergeych committed 2024-11-26 18:57:59 +07:00
1 parent 9545ca28cf
commit 04ffde421d
4 files changed
+36 -32

No files matched your search

@@ -22,7 +22,7 @@ import net.sergeych.tools.AtomicCounter
private val counter = AtomicCounter()
/**
* Shortcut to create websocket client. Use [webSocketTransportDevice] with [KiloClient]
* Shortcut to create websocket client. Use [websocketTransportDevice] with [KiloClient]
* for fine-grained control.
*/
fun <S> websocketClient(
@@ -35,7 +35,7 @@ fun <S> websocketClient(
},
): KiloClient<S> {
return KiloClient(clientInterface, secretKey) {
KiloConnectionData(webSocketTransportDevice(path), sessionMaker())
KiloConnectionData(websocketTransportDevice(path), sessionMaker())
}
}
@@ -44,7 +44,7 @@ fun <S> websocketClient(
* @param path websocket path (must start with ws:// or wss:// and contain a path part)
* @client use default [HttpClient], it installs [WebSockets] plugin
*/
fun webSocketTransportDevice(
fun websocketTransportDevice(
path: String,
client: HttpClient = HttpClient { install(WebSockets) },
): Transport.Device {