From e434334a21247ac29809ef5c47f4c889e28d0c20 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 21 May 2021 22:16:48 +0200 Subject: :sparkles: Member List --- src/Server.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index 149883c2..193bdad1 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -6,6 +6,9 @@ import { Server as WebSocketServer } from "ws"; import { Connection } from "./events/Connection"; import Config from "./util/Config"; +// TODO: only listen/start the server if everything got initalized +// https://www.npmjs.com/package/ws use "External HTTP/S server" and listen manually at the end of listen() + var port = Number(process.env.PORT); if (isNaN(port)) port = 3002; @@ -14,6 +17,7 @@ export class Server { constructor() { this.ws = new WebSocketServer({ port, + maxPayload: 4096, // perMessageDeflate: { // zlibDeflateOptions: { -- cgit 1.5.1