Skip to content

Commit

Permalink
docs: use ES6 syntax in the usage section
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Mar 13, 2024
1 parent 2c0f6a2 commit fee149b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ npm install @socket.io/postgres-adapter
## Usage

```js
const { Server } = require("socket.io");
const { createAdapter } = require("@socket.io/postgres-adapter");
const { Pool } = require("pg");
import { Server } from "socket.io";
import { createAdapter } from "@socket.io/postgres-adapter";
import pg from "pg";

const io = new Server();

const pool = new Pool({
const pool = new pg.Pool({
user: "postgres",
host: "localhost",
database: "postgres",
Expand Down

0 comments on commit fee149b

Please sign in to comment.