From fee149b26278437082e7c062e1e28342d540ea70 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Wed, 13 Mar 2024 14:07:14 +0100 Subject: [PATCH] docs: use ES6 syntax in the usage section --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6cb71f4..42ccf55 100644 --- a/README.md +++ b/README.md @@ -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",