Constructors
Link copied to clipboard
fun Kweb(port: Int, debug: Boolean = true, plugins: List<KwebPlugin> = Collections.emptyList(), httpsConfig: EngineSSLConnectorConfig? = null, kwebConfig: KwebConfiguration = KwebDefaultConfiguration(), buildPage: WebBrowser.() -> Unit)
The core kwebserver, and the starting point for almost any Kweb app. This will create a HTTP server and respond with a javascript page which will establish a websocket connection to retrieve and send instructions and data between browser and server.
Types
Link copied to clipboard
If you have an existing Ktor server, you can use the Kweb class as a feature. Adding this to your code is easy:
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Forces all currently connected clients to refresh their pages. This can be useful if there has been a code-change, for example.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard