MokksyServer

constructor(port: Int = 0, host: String = DEFAULT_HOST, verbose: Boolean = false, configurer: (<Error class: unknown class>) -> Unit = {})

Parameters

port

The port number on which the server will run. Defaults to 0 (randomly assigned port).

verbose

A flag indicating whether detailed logs should be printed. Defaults to false.

wait

Determines whether the server startup process should block the current thread. Defaults to false.

configurer

A lambda function for setting custom configurations for the server's application module.


constructor(port: Int = 0, host: String = DEFAULT_HOST, configuration: ServerConfiguration, wait: Boolean = false, configurer: (<Error class: unknown class>) -> Unit = {})

Initializes the server with the specified parameters and starts it.

Parameters

port

The port number on which the server will run. Defaults to 0 (randomly assigned port).

configuration

Server configuration options

wait

Determines whether the server startup process should block the current thread. Defaults to false.

configurer

A lambda function for setting custom configurations for the server's application module.