add auto-reload to magix server status page

This commit is contained in:
Alexander Nozik 2021-07-05 17:31:46 +03:00
parent d0f22eec93
commit 1cf7058778

View File

@ -112,6 +112,12 @@ public fun Application.magixModule(magixFlow: MutableSharedFlow<GenericMagixMess
route(route) {
get("state") {
call.respondHtml {
head {
meta {
httpEquiv = "refresh"
content = "2"
}
}
body {
h1 { +"Magix loop statistics" }
h2 { +"Number of subscribers: ${magixFlow.subscriptionCount.value}" }