Skip to content

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

Merged
LKasianAnsys merged 2 commits into
mainfrom
fix/client-shared-connection
Nov 10, 2026
Merged

LKasianAnsys merged 2 commits into
mainfrom
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
@LKasianAnsys
LKasianAnsys force-pushed the fix/client-shared-connection branch 3 times, most recently from 4cc25ab to db866a8 Compare November 4, 2026 16:56
@LKasianAnsys
LKasianAnsys force-pushed the fix/client-shared-connection branch 2 times, most recently from cfe1a8e to 8edbc55 Compare November 4, 2026 21:16
@LKasianAnsys
LKasianAnsys force-pushed the fix/client-shared-connection branch from 8edbc55 to bcd84ce Compare November 5, 2026 14:45
@LKasianAnsys LKasianAnsys self-assigned this Nov 5, 2026
@LKasianAnsys
LKasianAnsys force-pushed the fix/client-shared-connection branch from bcd84ce to 7f6d990 Compare November 5, 2026 15:33
@LKasianAnsys
LKasianAnsys marked this pull request as ready for review November 5, 2026 16:38
@LKasianAnsys LKasianAnsys mentioned this pull request Nov 5, 2026
@LKasianAnsys
LKasianAnsys force-pushed the fix/client-shared-connection branch 2 times, most recently from f2e2af8 to ff7b09d Compare November 9, 2026 15:35
Base automatically changed from feat/client-update-queue to main November 9, 2026 15:46
@LKasianAnsys
LKasianAnsys force-pushed the fix/client-shared-connection branch from ff7b09d to ed5ae1a Compare November 9, 2026 15:46

@ansBAkula ansBAkula left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works

@LKasianAnsys
LKasianAnsys merged commit d393de3 into main Nov 10, 2026
17 checks passed
@LKasianAnsys
LKasianAnsys deleted the fix/client-shared-connection branch November 10, 2026 14:18
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.

3 participants