tauri-remote-ui 0.22.0 → 0.23.0

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Tauri Remote UI
2
2
 
3
- **Tauri Remote UI** is a plugin that allows you to expose your Tauri application's UI to any web browser, enabling seamless remote interaction and end-to-end testing. The plugin bridges your native app and commercial browsers, letting you use standard web automation tools for testing and debugging—without modifying your app's core logic.
3
+ **Tauri Remote UI** is a plugin that allows you to expose your Tauri application's UI to any web browser, enabling seamless remote interaction and end-to-end testing. The plugin bridges your native app and commercial browsers, letting you use standard web automation tools for testing and debugging—without modifying your app's logic.
4
4
 
5
5
  ## Features
6
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tauri-remote-ui",
3
3
  "license": "MIT",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "author": "DraviaVemal",
6
6
  "description": "A Tauri plugin that exposes the application's UI to a web browser, allowing full interaction while the native app continues running. This enables end-to-end UI testing using existing web-based testing tools without requiring modifications to the app itself.",
7
7
  "type": "module",
package/socket.cjs CHANGED
@@ -19,6 +19,11 @@ function getWsUrl() {
19
19
  const wsUrl = `${proto}//${loc.host}/remote_ui_ws`;
20
20
  return wsUrl;
21
21
  }
22
+ function getUrl() {
23
+ const loc = window.location;
24
+ const wsUrl = `${loc.protocol}//${loc.host}/remote_ui`;
25
+ return wsUrl;
26
+ }
22
27
  /**
23
28
  * Initialize the WebSocket connection
24
29
  * This should be called once at the start of your application
@@ -50,6 +55,7 @@ function initWebSocket() {
50
55
  exports.ws = null;
51
56
  exports.wsReady = null;
52
57
  console.info("Remote Dis-Connected.");
58
+ window.location.replace(getUrl());
53
59
  };
54
60
  exports.ws.onerror = (e) => {
55
61
  reject(e);
package/socket.js CHANGED
@@ -17,6 +17,11 @@ function getWsUrl() {
17
17
  const wsUrl = `${proto}//${loc.host}/remote_ui_ws`;
18
18
  return wsUrl;
19
19
  }
20
+ function getUrl() {
21
+ const loc = window.location;
22
+ const wsUrl = `${loc.protocol}//${loc.host}/remote_ui`;
23
+ return wsUrl;
24
+ }
20
25
  /**
21
26
  * Initialize the WebSocket connection
22
27
  * This should be called once at the start of your application
@@ -48,6 +53,7 @@ function initWebSocket() {
48
53
  ws = null;
49
54
  wsReady = null;
50
55
  console.info("Remote Dis-Connected.");
56
+ window.location.replace(getUrl());
51
57
  };
52
58
  ws.onerror = (e) => {
53
59
  reject(e);