mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 14:14:13 +01:00
faster updates
This commit is contained in:
@@ -191,6 +191,7 @@ class Server:
|
||||
"""Handles a publish-only websocket connection that send show_object events along with their hashes and URLs"""
|
||||
self.at_least_one_client.set()
|
||||
async with sse_response(request) as resp:
|
||||
resp.ping_interval = 0.1 # HACK: Browsers don't receive instant updates without this
|
||||
logger.debug('Client connected: %s', request.remote)
|
||||
|
||||
# Send buffered events first, while keeping a lock
|
||||
|
||||
Reference in New Issue
Block a user