Skip to content

Commit 01bd315

Browse files
committed
Update websocket ping_interval and timeout.
1 parent 9263c8e commit 01bd315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

launcher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def main() -> None:
3333
async with aiohttp.ClientSession() as session, core.Database() as database:
3434
app: api.Server = api.Server(session=session, database=database)
3535

36-
config = uvicorn.Config(app, port=core.config['SERVER']['port'])
36+
config = uvicorn.Config(app, port=core.config['SERVER']['port'], ws_ping_interval=10, ws_ping_timeout=None)
3737
server = uvicorn.Server(config)
3838
await server.serve()
3939

0 commit comments

Comments
 (0)