File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,16 @@ dormant. These intervals are configurable via the settings `data_ttl` and
176176` seq_ttl ` respectively under ` streaming_cach ` configuration. (In the `tiled
177177serve` CLI they are ` --cache-data-ttl` and ` --cache-seq-ttl`.)
178178
179+ ## Handling Large Data
180+
181+ By default, WebSocket messages are limited to 1 MB. For larger updates,
182+ increase the ` max_size ` parameter when subscribing:
183+
184+ ``` py
185+ # Accept updates as large as 1 GB
186+ sub = client.subscribe(max_size = 1_000_000_000 )
187+ ```
188+
179189## Performance Optimization: Non-persistent Updates
180190
181191To rapidly stream large arrays of transitory data, it might be unnecessary
Original file line number Diff line number Diff line change @@ -1219,7 +1219,6 @@ def subscribe(
12191219 a concurrent.futures.ThreadPoolExecutor is used.
12201220 max_size : int, optional
12211221 Maximum size in bytes for incoming WebSocket messages. Default is 1 MB.
1222- Increase this for large array updates (e.g., 1_000_000_000 for 1 GB).
12231222
12241223 Returns
12251224 -------
You can’t perform that action at this time.
0 commit comments