1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-13 06:02:39 +01:00

ping route

This commit is contained in:
Flam3rboy 2021-08-08 17:18:14 +02:00
parent 21a613c818
commit 7597d141b1

View File

@ -17,7 +17,10 @@ export class Server {
this.production = production || false; this.production = production || false;
if (server) this.server = server; 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({ this.ws = new WebSocketServer({
maxPayload: 4096, maxPayload: 4096,