mayros remote-control
Start a WebSocket server that allows controlling a Mayros session from another device such as a phone, tablet, or web browser. The server generates a random access code for basic authentication.
Options
| Option | Description |
|---|---|
--port <port> | Server port (default: 3456) |
--host <host> | Bind host (default: 0.0.0.0) |
Server details
- HTTP endpoint —
http://<host>:<port>serves a basic status page and a/healthendpoint returning JSON{ "status": "ok" } - WebSocket endpoint —
ws://<host>:<port>/wsaccepts WebSocket connections (RFC 6455) - Access code — a random 6-character hex code is generated on each start for basic authentication
The server runs until interrupted with Ctrl+C.
Examples
bashmayros remote-control mayros remote-control --port 8080 mayros remote-control --host 127.0.0.1 mayros remote-control --port 9000 --host 0.0.0.0