summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-21 22:16:48 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-21 22:16:48 +0200
commite434334a21247ac29809ef5c47f4c889e28d0c20 (patch)
tree02ec82f6acc57ee8c1aecf2d95a4254e83553fd7 /src/Server.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-gateway (diff)
downloadserver-e434334a21247ac29809ef5c47f4c889e28d0c20.tar.xz
:sparkles: Member List
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts4
1 files changed, 4 insertions, 0 deletions
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: {