Demo showing how to listen to database changes and send them to a WebSocket connection, akin to FireBase, Supabase and etc.
$ '/ws/all' -> Listen to all tables + all rows
$ '/ws/$table' -> Listen to all events on a specific table
$ '/ws/$table/$id' -> Listen to all events on a specific table + specific row.$idcan only match the rows that do contain that.- On transactions, events are pushed batched after the commit.
- It's just a demo. Not a real service.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
run all make commands with clean tests
make all buildbuild the application
make buildrun the application
make runlive reload the application
make watchrun the test suite
make testclean up binary from the last build
make clean