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