connect(options)
This method connects Mimic with remote UI
You can connect Mimic to a remote UI url if you wish to run the UI on a separate browser tab.
Please see Remote Debugger Guide on how to use this feature.
Option name | Option value |
---|---|
hostname | Host to connect to (defaults to localhost) |
port | Port to connect to (defaults to 5000) |
import connect from 'mimic/remote';
connect();
// or alternatively you can specify the connection options
connect({ hostname: 'localhost', port: 5000 });