Package-level declarations
Client-side websocket connection factory and channel setup.
Server-side ktor websocket routing integration for ksrpc.
Functions
Link copied to clipboard
inline fun <T : RpcService> Routing.serveWebsocket(basePath: String, service: T, env: KsrpcEnvironment<String>)
Hosts the given service over a WebSocket on the supplied basePath within a Ktor Routing block. The server application must have the WebSockets plugin installed.
fun Routing.serveWebsocket(basePath: String, channel: SerializedService<String>, env: KsrpcEnvironment<String>)