src/LiveDevelopment/Inspector/Inspector.js
function connect(socketURL) {
        disconnect().done(function () {
            _socket = new WebSocket(socketURL);
            _socket.onmessage = _onMessage;
            _socket.onopen = _onConnect;
            _socket.onclose = _onDisconnect;
            _socket.onerror = _onError;
        });
    }
function connect(socketURL) {
        disconnect().done(function () {
            _socket = new WebSocket(socketURL);
            _socket.onmessage = _onMessage;
            _socket.onopen = _onConnect;
            _socket.onclose = _onDisconnect;
            _socket.onerror = _onError;
        });
    }
function connect ( socketURL ) { disconnect ( ) . done ( function ( ) { _socket = new WebSocket ( socketURL ) ; _socket . onmessage = _onMessage ; _socket . onopen = _onConnect ; _socket . onclose = _onDisconnect ; _socket . onerror = _onError ; } ) ; }
Connect to the remote debugger WebSocket at the given URL.
Clients must listen for the `connect` event.
@param {string} WebSocket URL
Connect to the remote debugger WebSocket at the given URL . Clients must listen for the connect event .