From 41a193dff0911da78fe080f610478ecabeb6184a Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 9 Oct 2021 01:45:02 +0200 Subject: :art: fix imports with new build script --- gateway/src/Server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gateway/src/Server.ts') diff --git a/gateway/src/Server.ts b/gateway/src/Server.ts index b4e92a75..cf4f906c 100644 --- a/gateway/src/Server.ts +++ b/gateway/src/Server.ts @@ -2,12 +2,12 @@ import "missing-native-js-functions"; import dotenv from "dotenv"; dotenv.config(); import { closeDatabase, Config, initDatabase, initEvent } from "@fosscord/util"; -import { Server as WebSocketServer } from "ws"; +import ws from "ws"; import { Connection } from "./events/Connection"; import http from "http"; export class Server { - public ws: WebSocketServer; + public ws: ws.Server; public port: number; public server: http.Server; public production: boolean; @@ -39,7 +39,7 @@ export class Server { }); }); - this.ws = new WebSocketServer({ + this.ws = new ws.Server({ maxPayload: 4096, noServer: true, }); -- cgit 1.5.1