summary refs log tree commit diff
path: root/gateway/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:45:02 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:45:02 +0200
commit41a193dff0911da78fe080f610478ecabeb6184a (patch)
tree758769629b934b1ba30b97965f30ef70d60e3139 /gateway/src/Server.ts
parent:bug: fix build (diff)
downloadserver-41a193dff0911da78fe080f610478ecabeb6184a.tar.xz
:art: fix imports with new build script
Diffstat (limited to '')
-rw-r--r--gateway/src/Server.ts6
1 files changed, 3 insertions, 3 deletions
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, });