News for hackers. Stuff that matters.
Re:Soul, SQLite REST server is realtime now. WebSockets added by thevahidal on Saturday November 05, 2022 @03:20PM (#33484694)
Hi Folks, It's been an amazing journey since I first published Soul on HN and now I added a really major feature that Soul lacked, Realtime changes via Websockets.

For those who are not familiar with Soul, it basically takes a SQLite database file and run a CRUD API on it, so you can have a minimal backend with no code.

Now thanks to this new feature, users can subscribe to changes in a table and whenever a Create, Update or Delete operation happens, Soul will send the realtime data to subscribers.

If you need some examples on how to work with websockets in Soul, you can find a bunch of examples here: https://github.com/thevahidal/soul/blob/main/docs/ws-example...

Please let me know what you think of this new feature and also submit any issues you faced so we can fix them as soon as possible.

Also if you have ideas to make Soul a better tool, please send me your ideas, it'll help me a lot.

Once again thanks for the support and I'll see you in the next one!

Re:Soul, SQLite REST server is realtime now. WebSockets added by franky47 on Saturday November 05, 2022 @03:51PM (#33484952)
Nice work!

FYI, just noticed a small typo in the repo description (relatime).

Re:Soul, SQLite REST server is realtime now. WebSockets added by thevahidal on Saturday November 05, 2022 @04:03PM (#33485074)
Thanks for the heads-up, I'll fix it asap.
Re:Soul, SQLite REST server is realtime now. WebSockets added by avinassh on Sunday November 06, 2022 @04:05AM (#33490619)
How does it work? I mean how do you figure out that something has changed?