start

abstract fun start(port: Int, onReady: (Stoppable) -> Unit = {})

Starts the server on port.

Parameters

onReady

callback called when the server is ready to accept requests, with the application as argument