{"id":15816768,"url":"https://github.com/revmischa/wsnotify","last_synced_at":"2025-04-01T03:43:11.697Z","repository":{"id":137343787,"uuid":"89007991","full_name":"revmischa/wsnotify","owner":"revmischa","description":"WebSocket \u003c-\u003e PostgreSQL message passing server","archived":false,"fork":false,"pushed_at":"2015-04-25T19:44:28.000Z","size":343,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T07:53:07.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revmischa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-21T17:26:09.000Z","updated_at":"2017-05-25T22:33:51.000Z","dependencies_parsed_at":"2023-03-14T04:31:35.530Z","dependency_job_id":null,"html_url":"https://github.com/revmischa/wsnotify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fwsnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fwsnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fwsnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fwsnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revmischa","download_url":"https://codeload.github.com/revmischa/wsnotify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246580461,"owners_count":20800108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T05:20:24.286Z","updated_at":"2025-04-01T03:43:11.680Z","avatar_url":"https://github.com/revmischa.png","language":"Go","readme":"WSNotify\n========\n### WebSocket interface to PostgreSQL [LISTEN](http://www.postgresql.org/docs/9.4/static/sql-listen.html)/[NOTIFY](http://www.postgresql.org/docs/9.4/static/sql-notify.html) message passing functionality\n\n## PostgreSQL message passing? What is this sourcery?\nUnbeknownst to many people, the excellent open-source database PostgreSQL can pass around messages on channels to asynchronous listeners. It is a very simple and useful service if you want to push messages and already use Postgres. You can read more about it [here](http://www.postgresql.org/docs/9.4/static/sql-notify.html) and see some demos [here](https://github.com/revmischa/pgnotify-demos) along with some [slides](https://github.com/revmischa/pgnotify-demos/blob/master/slides.pdf) from a talk.\n\n```\nLISTEN virtual;\nNOTIFY virtual;\nAsynchronous notification \"virtual\" received from server process with PID 8448.\nNOTIFY virtual, 'This is the payload';\nAsynchronous notification \"virtual\" with payload \"This is the payload\" received from server process with PID 8448.\n```\n\n## What is WSNotify?\nWSNotify is a websocket server. Clients can connect and request to listen on a channel, and can also post events. It essentially is a push notification system using PostgreSQL as the transport. This makes it easy to push messages from other applications directly to any connected clients, in publish-subscribe style.\n\n## Configuration\nCopy config.yaml to /etc/wsnotify/config.yaml and edit it to select a port to listen on and your database connection info.\n\n## Postgres clients\nTo send and receive asynchronous messages through Postgres you can use any Postgres client library, as basically all of them support this capability. You can also use libpq and `select()` for C applications [demo here](https://github.com/revmischa/pgnotify-demos/blob/master/pglisten.c).\n\n## Building\n....\n\n## Example\n...\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevmischa%2Fwsnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevmischa%2Fwsnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevmischa%2Fwsnotify/lists"}