Skip to content

Commit

Permalink
fix: ws import
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Jul 27, 2023
1 parent c91d4af commit c624814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as os from 'os';
import express from 'express';
import http from 'http';
import WebSocket from 'ws';
import { WebSocketServer } from 'ws';
import dotenv from 'dotenv';
dotenv.config();
import { Responses } from '@blockfrost/blockfrost-js';
Expand Down Expand Up @@ -62,7 +62,7 @@ if (process.env.BLOCKFROST_SENTRY_DSN) {

const port = getPort();
const server = http.createServer(app);
const wss = new WebSocket.Server({ server });
const wss = new WebSocketServer({ server });

server.keepAliveTimeout = 65_000;

Expand Down

0 comments on commit c624814

Please sign in to comment.