summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:30:07 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:30:07 +0200
commit509394b592a5a5469ed73570ccab94f00317666f (patch)
tree5a576af419ab14219c1b8136481237add9a96f2d /src/Server.ts
parent:art: add opcodes (diff)
downloadserver-509394b592a5a5469ed73570ccab94f00317666f.tar.xz
add .lean to mongodb queries
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index df5ec905..ea1e39b0 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -9,7 +9,15 @@ import Config from "./util/Config"; export class Server { public ws: WebSocketServer; constructor() { - this.ws = new WebSocketServer({ port: 8080, maxPayload: 4096 }); + this.ws = new WebSocketServer({ + port: 8080, + maxPayload: 4096, + // perMessageDeflate: { + // zlibDeflateOptions: { + // chunkSize: 65536, + // }, + // }, + }); this.ws.on("connection", Connection); }