We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61cd61c commit 89d5d9bCopy full SHA for 89d5d9b
server-src/rtcsignal/req-handler.js
@@ -34,6 +34,7 @@ function fakeIoCreate() {
34
var io = fakeIO({ noServer: true });
35
var connectedCount = 0;
36
io.on("connection", (socket) => {
37
+ clearTimeout(io.destroyTimeout);
38
connectedCount += 1;
39
const connectedUser = {
40
id: socket.id,
@@ -139,6 +140,9 @@ function newHostThing(val) {
139
140
host.close();
141
delete hosts[key];
142
};
143
+ host.destroyTimeout = setTimeout(() => {
144
+ host.endFunction();
145
+ },1000*30); //half of a minute.
146
hosts[key] = host;
147
return key;
148
}
0 commit comments