From c7c7c2cb8728696f142d497f43ed8a72e2df8353 Mon Sep 17 00:00:00 2001 From: Thomas Erlang Date: Thu, 31 Oct 2024 13:44:49 +0100 Subject: [PATCH] websocket_ping_interval --- tbot/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbot/web/app.py b/tbot/web/app.py index 7ed3095..9cb7f62 100644 --- a/tbot/web/app.py +++ b/tbot/web/app.py @@ -95,12 +95,12 @@ def App(): cookie_secret=config.data.web.cookie_secret, template_path=os.path.join(os.path.dirname(__file__), 'templates'), autoescape=None, + websocket_ping_interval=15, ) async def main(): app = App() server = app.listen(config.data.web.port) - app.db = await db.Db().connect() app.redis = await aioredis.create_redis_pool( f'redis://{config.data.redis.host}:{config.data.redis.port}',