mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-19 02:08:14 +03:00
testing pings
This commit is contained in:
parent
09fc78f24e
commit
1ddd4f3bae
@ -21,6 +21,7 @@ export const create = () => {
|
||||
});
|
||||
|
||||
ws.on("ping", function () {
|
||||
NodeLogging.log(`Pinged`);
|
||||
clearTimeout(this.pingTimeout);
|
||||
|
||||
this.pingTimeout = setTimeout(() => {
|
||||
|
@ -19,8 +19,6 @@ import compression from "compression";
|
||||
import cors from "cors";
|
||||
import morgan from "morgan";
|
||||
|
||||
Websocket.create();
|
||||
|
||||
const app = next({
|
||||
dev: !Environment.IS_PRODUCTION,
|
||||
dir: __dirname,
|
||||
@ -476,6 +474,7 @@ app.prepare().then(async () => {
|
||||
const listenServer = server.listen(Environment.PORT, (e) => {
|
||||
console.log("listen server function called");
|
||||
if (e) throw e;
|
||||
Websocket.create();
|
||||
|
||||
NodeLogging.log(`started on http://localhost:${Environment.PORT}`);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user