PostgreSQL and WebSockets notifications with Rails

Is there a Ruby / Rails library for sending PostgreSQL asynchronous notifications via WebSockets?

I need to notify the browser client of updates in a specific database table. I know that this can be done using the pub / sub API, but I'm looking for a solution only for Postgres.

I found

+5
source share
1 answer

I don’t know directly what works with websockets, but the queue_classic gem uses the listen / notify function in postgres to queue messages. This is a good way to start looking at how this can be done.

+2
source

All Articles