From 8cbe8e1a92fbf6531ff477b5dff11185c53fd12d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 24 Jan 2022 13:34:29 +0100 Subject: stupid workaround for nginx disconnection inactive connections --- source/client/room.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'source/client') diff --git a/source/client/room.ts b/source/client/room.ts index 3f56ece..45ccd84 100644 --- a/source/client/room.ts +++ b/source/client/room.ts @@ -67,5 +67,6 @@ export class Room { websocket_open() { log("ws", "websocket opened"); this.websocket.send(this.local_user.name) + setInterval(() => this.websocket_send({}), 30000) // stupid workaround for nginx disconnection inactive connections } } \ No newline at end of file -- cgit v1.2.3-70-g09d2