mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
faster updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "yacv-server"
|
||||
version = "0.4.3" # TODO: Update automatically by CI on release (also for package.json!)
|
||||
version = "0.4.4" # TODO: Update automatically by CI on release (also for package.json!)
|
||||
description = "Yet Another CAD Viewer (server)"
|
||||
authors = ["Yeicor <4929005+Yeicor@users.noreply.github.com>"]
|
||||
license = "MIT"
|
||||
|
||||
@@ -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