Server

constructor(serverInfo: Implementation, options: ServerOptions, onCloseCallback: () -> Unit? = null)(source)

Parameters

serverInfo

Information about this server implementation (name, version).

options

Configuration options for the server.

onCloseCallback

A callback invoked when the server connection closes.