Be sure to run `ios-minicap --port 12345`
chsasaw opened this issue · comments
Run 'node app.js' and then open 'http://localhost:9002/', sometimes got this:
Listening on port 9002
Got a client
{ Error: connect ETIMEDOUT 127.0.0.1:12345
at Object.exports._errnoException (util.js:953:11)
at exports._exceptionWithHostPort (util.js:976:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
code: 'ETIMEDOUT',
errno: 'ETIMEDOUT',
syscall: 'connect',
address: '127.0.0.1',
port: 12345 }
Be sure to run `ios-minicap --port 12345`
anything wrong?
If you've started ios-minicap
on port 12345
before running node app.js
, then it is haven't got first frame from device to setup. Currently it is waiting for a frame and only then starting socket server.
So what can I do now? How to stop ios-minicap
, and restart using node app.js
?
follow the readme instructions:
- first, it one terminal window/tab, run
./run.sh
, it will startios-minicap
- wait for it to show you
banner
- then, in another terminal windows/tab, run
node example/app.js