shared void startServer() {
value server = newServer({
Endpoint {
path = isRoot();
service = (req, res) {
renderTemplate(
Html {
Body {
H1 { "log:" }
// some code that accepts messages from the server and displays on the Web screen
}
},
res.writeString);
};
}
//,WebSocketEndpoint {
//
// some code that sends messages to the web client
//
// }
}).start(SocketAddress("127.0.0.1",8080));
}
shared void procces() {
// some process that generates callbacks
}