We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06ad5f9 commit 6852018Copy full SHA for 6852018
1 file changed
app/composables/useShare.ts
@@ -74,8 +74,10 @@ export function useShare() {
74
75
connectControlWs(data.shareId, "host", "host");
76
77
- // Desktop host always uses relay mode (SSH stays local)
78
- if (opts.serverUrl) {
+ // Connect relay WS whenever session is relay mode:
+ // - remote server URL (desktop sharing via Railway) — hostSessionId forced to undefined
79
+ // - local sharing with no SSH session (desktop local mode) — hostSessionId not set
80
+ if (opts.serverUrl || !opts.hostSessionId) {
81
connectRelayWs(data.shareId);
82
}
83
0 commit comments