pmeinhardt / ktor-liveview

An experiment investigating server-rendered, live-updating views for Ktor 🧪
MIT License
1 stars 0 forks source link

Let server LiveView instances send out updates #6

Closed pmeinhardt closed 1 year ago

pmeinhardt commented 1 year ago

Currently, the server WebSocket handler contains the demo "tick-and-send-update" code. Instead, server-side LiveView instances should be able to send updates whenever they're changed.

https://github.com/pmeinhardt/ktor-liveview/blob/b1a959ab18844d3bac1f4b63514852ba9429235a/src/main/kotlin/io/mnhrdt/plugins/live/Live.kt#L53-L62

pmeinhardt commented 1 year ago

See: c210533a63768bf761ef79113179db570c8bf639