mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
✨ ping route
This commit is contained in:
parent
21a613c818
commit
7597d141b1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user