electrobun 1.17.3-beta.2 → 1.17.3-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,6 +42,11 @@ class Electroview<T extends RPCWithTransport> {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
initSocketToBun() {
|
|
45
|
+
// Skip native socket when running in a remote browser (no port/webview ID)
|
|
46
|
+
if (!RPC_SOCKET_PORT || !WEBVIEW_ID) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
// Note: Using ws:// for localhost is intentional - all RPC messages are
|
|
46
51
|
// encrypted with per-webview AES-GCM keys, making TLS redundant
|
|
47
52
|
const socket = new WebSocket(
|
package/package.json
CHANGED