mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
26 lines
412 B
Markdown
26 lines
412 B
Markdown
# Example with `@socket.io/postgres-adapter`
|
|
|
|
**Table of contents**
|
|
|
|
<!-- TOC -->
|
|
* [How to use](#how-to-use)
|
|
* [Documentation](#documentation)
|
|
<!-- TOC -->
|
|
|
|
## How to use
|
|
|
|
```bash
|
|
# start the postgres server
|
|
$ docker compose up -d
|
|
|
|
# run the cluster
|
|
$ node cluster.js
|
|
|
|
# run the client
|
|
$ node client.js
|
|
```
|
|
|
|
## Documentation
|
|
|
|
The documentation can be found here: https://socket.io/docs/v4/postgres-adapter/
|