@mobilenext/mobilecli 0.0.50 → 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
@@ -1,11 +1,11 @@
1
- # mobilecli
1
+ # mobilecli
2
2
 
3
- A universal command-line tool for managing iOS and Android devices, simulators, emulators and apps from [Mobile Next](https://github.com/mobile-next/).
3
+ A universal command-line tool for managing iOS and Android devices, simulators, emulators and apps from [Mobile Next](https://github.com/mobile-next/).
4
4
 
5
5
  <p align="center">
6
6
  <a href="https://github.com/mobile-next/mobilecli">
7
7
  <img src="https://img.shields.io/github/stars/mobile-next/mobilecli" alt="Mobile Next Stars" />
8
- </a>
8
+ </a>
9
9
  <a href="https://github.com/mobile-next/mobilecli">
10
10
  <img src="https://img.shields.io/github/contributors/mobile-next/mobilecli?color=green" alt="Mobile Next Downloads" />
11
11
  </a>
@@ -17,13 +17,13 @@ A universal command-line tool for managing iOS and Android devices, simulators,
17
17
  </a>
18
18
  <a href="https://github.com/mobile-next/mobilecli/blob/main/LICENSE">
19
19
  <img src="https://img.shields.io/badge/license-AGPL v3.0-blue.svg" alt="Mobile MCP is released under the AGPL v3.0 License">
20
- </a>
20
+ </a>
21
21
  </p>
22
22
 
23
23
  <p align="center">
24
24
  <a href="http://mobilenexthq.com/join-slack">
25
25
  <img src="https://img.shields.io/badge/join-Slack-blueviolet?logo=slack&style=flat" alt="Slack community channel" />
26
- </a>
26
+ </a>
27
27
  </p>
28
28
 
29
29
 
@@ -63,7 +63,7 @@ make build
63
63
 
64
64
  ### Install Dependencies
65
65
 
66
- #### 🍎 For iOS Simulator Support
66
+ #### 🍎 For iOS Simulator Support
67
67
 
68
68
  Xcode is required. Make sure you have it installed with the runtimes relevant for you installed. You will have to create Simulators and have them booted before `mobilecli` can use them.
69
69
 
@@ -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 🔍
@@ -197,7 +215,7 @@ make test
197
215
 
198
216
  ## Support 💬
199
217
 
200
- For issues and feature requests, please use the [GitHub Issues](https://github.com/mobile-next/mobilecli/issues) page.
218
+ For issues and feature requests, please use the [GitHub Issues](https://github.com/mobile-next/mobilecli/issues) page.
201
219
 
202
220
  Be sure to <a href="http://mobilenexthq.com/join-slack">join our slack channel</a> today 💜
203
221
 
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.50",
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": {