Hi,
I'm interested in exposing a websocket interface to a client, which updates its clients in real time every time a certain model in Postgres changes, but I'm not sure how to architect it. I've established a connection to my websocket via app.webSocket("path") { ... } as in the docs, but I'm not sure the mechanism how to tell the websocket to send a message on model update. I could use webSocket.eventLoop.scheduleRepeatedTask to check for an update every X seconds, but I'm curious if I'm thinking about this wrong or if there are better/less manual ways.