create

fun create(port: Int, routing: Routing.() -> Unit = {}, receive: RpcReceiveService): EmbeddedServer<CIOApplicationEngine, CIOApplicationEngine.Configuration>

Creates an embedded server with WebSocket functionality, routing configuration, and RPC message handling.

Return

An embedded server instance configured with CIO engine, WebSocket support, and custom routing logic.

Parameters

port

The port on which the server will listen for incoming connections.

routing

A lambda function to define additional routing configurations for the server.

receive

The service responsible for processing WebSocket frames and handling RPC requests.