Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 675 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 675 Bytes

pg_websocket

PostgreSQL extension that adds support for WebSocket connections to a database. Supports standard PostgreSQL protocol in a binary WebSocket connection.

Use with a WebSocket PostgreSQL client like pegsocket.js.

Installation

Building the extension

$ make
$ sudo make install

Setup postgresql.conf

shared_preload_libraries = 'pg_websocket'

## Optional: port to listen for WebSocket connections
# websocket.port = 15432
## Optional: backend database host to pass traffic to
# websocket.pg_host = localhost
## Optional: backend database port to pass traffic to
# websocket.pg_port = 5432