1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +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;
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,