start

fun start(options: WebServerOptions, session: ServerMessageSession, onSessionReady: suspend () -> Unit = { }): Unit?

Starts the web server which serves the specified file and allows for live reloading.

Parameters

options

options to start the server with

session

session to use to communicate with the web server

onSessionReady

optional callback to invoke when the session is ready