Skip to content

feat: Reuse the rendering-mode probe connection in client mode - #203

Draft
LKasianAnsys wants to merge 2 commits into
feat/client-update-queuefrom
fix/client-shared-connection
Draft

LKasianAnsys wants to merge 2 commits into
feat/client-update-queuefrom
fix/client-shared-connection

Conversation

@LKasianAnsys

Copy link
Copy Markdown
Collaborator

Addresses #192

When a VISOR session is loaded in the browser, the app opens a Trame connection to ask the server which rendering mode it is running in (the rendering-mode probe). it then starts the client or server viewer.

Server mode keeps using that connection. Until now, client mode disconnected it and opened a second connection for the WASM scene. The probe's beforeunload listener then called the closed socket on every refresh, and its socket closed on a deleted object, logging two errors.

With this PR, client mode now passes the probe's open connection to the viewer, so client mode now uses a single connection, as server mode already does, and the mode is read from the probe's mode only. Server mode is unchanged.

@LKasianAnsys
LKasianAnsys added this pull request to stack #197 November 3, 2026 16:46
@github-actions github-actions Bot added fixed bug Something isn't working labels Nov 3, 2026
@LKasianAnsys LKasianAnsys changed the title feat: Reuse the rendering-mode probe's connection in client mode feat: Reuse the rendering-mode probe connection in client mode Nov 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants