summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-08 17:18:14 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-08 17:18:14 +0200
commit7597d141b17030418d2642295afd72c087e732e2 (patch)
tree5d9346f74bdbef67b78d2244ce3919fc78485f95
parentnpm i @fosscord/server-util@1.3.43 (diff)
downloadserver-7597d141b17030418d2642295afd72c087e732e2.tar.xz
:sparkles: ping route
Diffstat (limited to '')
-rw-r--r--src/Server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index d53a8898..06cd74de 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -17,7 +17,10 @@ export class Server { this.production = production || false; if (server) this.server = server; - else this.server = http.createServer({}); + else + this.server = http.createServer(function (req, res) { + res.writeHead(200).end("Online"); + }); this.ws = new WebSocketServer({ maxPayload: 4096,