@mobilenext/mobilecli 0.0.51 → 0.0.52

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
@@ -77,6 +77,24 @@ Xcode is required. Make sure you have it installed with the runtimes relevant fo
77
77
  brew install --cask android-platform-tools
78
78
  ```
79
79
 
80
+ ## WebSocket Support 🔌
81
+
82
+ mobilecli includes a WebSocket server that allows multiple requests over a single connection using the same JSON-RPC 2.0 format as the HTTP API.
83
+
84
+ ```bash
85
+ # Start the server (default port 12000)
86
+ mobilecli server start
87
+
88
+ # Connect and send requests using wscat
89
+ wscat -c ws://localhost:12000/ws
90
+ > {"jsonrpc":"2.0","id":1,"method":"devices","params":{}}
91
+ < {"jsonrpc":"2.0","id":1,"result":[...]}
92
+ > {"jsonrpc":"2.0","id":2,"method":"screenshot","params":{"deviceId":"your-device-id"}}
93
+ < {"jsonrpc":"2.0","id":2,"result":{...}}
94
+ ```
95
+
96
+ **Note**: `screencapture` is not supported over WebSocket - use the HTTP `/rpc` endpoint for video streaming.
97
+
80
98
  ## Usage
81
99
 
82
100
  ### List Connected Devices 🔍
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobilenext/mobilecli",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "author": "Mobile Next",
5
5
  "description": "A universal command-line tool for managing iOS and Android devices, simulators, emulators and apps",
6
6
  "repository": {