Skip to content

Commit f5fb4df

Browse files
theotherredmanSalleeMatthew
authored andcommitted
Adding pingInterval and pingTimeout
1 parent b7ded23 commit f5fb4df

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

spa/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ const express = require("express");
22
const app = express();
33
const http = require("http").createServer(app);
44
const https = require("https");
5-
const io = require("socket.io")(http);
5+
const io = require("socket.io")(http, {
6+
pingInterval: 10000,
7+
pingTimeout: 30000
8+
});
69
const path = require("path");
710
const jwt = require("jsonwebtoken");
811
const package = require("./package.json");

0 commit comments

Comments
 (0)