@streamyy/postgres
v0.1.0
Published
PostgreSQL persistence adapter for Streamyy call sessions, presence, and connections.
Readme
@streamyy/postgres
PostgreSQL persistence adapter for Streamyy.
Install
npm install @streamyy/server @streamyy/postgres pgUsage
import { Pool } from "pg";
import { createPostgresPersistenceAdapter } from "@streamyy/postgres";
import { createStreammyServer } from "@streamyy/server";
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
});
const streammy = createStreammyServer({
httpServer,
persistence: createPostgresPersistenceAdapter({
client: pool,
}),
});SQL schema
See schema.sql.
