@Stefan Beyer I've made what I call Program Executives on various platforms including Java. These are decoupled from the UI in a process sense although they may launch the UI or communicate status with it. They range from update checkers to connection monitors. How you build that is separate from TornadoFX and (at least mine were) somewhat platform-specific. Standing one of these up that serviced requests on a socket would be the way to go. Netty for an HTTP Server or a WebSockets Server
This is using a webpage and not a TornadoFX app, but it will give you an intro for web sockets. I'm not suggesting a full WildFly, but maybe there's a light profile or Netty server that is leaner
https://courses.bekwam.net/public_tutorials/bkcourse_wildfly_websocket_devenv.html