Skip to content

Connect to non standard endpoints

Andrea Cardaci edited this page Dec 4, 2016 · 1 revision

Connect to non-standard endpoints instead of localhost:9222.

const CDP = require('chrome-remote-interface');

const options = {
    host: '10.0.0.1',
    port: 1337
};

CDP(options, (client) => {
    console.log('Connected!');
    client.close();
}).on('error', (err) => {
    console.error(err);
});