WebSocket proxy server for Detox, the gray-box end-to-end testing library for mobile apps. Version 7.0.0 is current and maintained. It acts as a middleware between Detox tests and the mobile device, handling app connectivity and command proxying. Releases are coupled with Detox's release cycle, roughly monthly. Key differentiator: it is a lightweight, dedicated server component that simplifies test infrastructure by managing WebSocket connections and device sessions, unlike generic WebSocket servers that require manual setup.
npm install detox-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize and start a Detox server on port 8099 with verbose logging.
Remove 'host' option from DetoxServer constructor.
Use async/await or .then() instead of callbacks.
For TLS, configure a reverse proxy (e.g., nginx) to terminate TLS.
Kill the process using port 8099 or change the port in DetoxServer constructor.
Use default import: import DetoxServer from 'detox-server' (ESM) or const DetoxServer = require('detox-server') (CJS).Run npm install ws or add 'ws' to your package.json dependencies.