src/LiveDevelopment/LiveDevelopment.js
function _onConnect(event) {
        // When the browser navigates away from the primary live document
        Inspector.Page.on("frameNavigated.livedev", _onFrameNavigated);

        // When the Inspector WebSocket disconnects unexpectedely
        Inspector.on("disconnect.livedev", _onDisconnect);

        _waitForInterstitialPageLoad()
            .fail(function () {
                close();

                Dialogs.showModalDialog(
                    DefaultDialogs.DIALOG_ID_ERROR,
                    Strings.LIVE_DEVELOPMENT_ERROR_TITLE,
                    _makeTroubleshootingMessage(Strings.LIVE_DEV_LOADING_ERROR_MESSAGE)
                );
            })
            .done(_onInterstitialPageLoad);
    }
function _onConnect(event) {
        // When the browser navigates away from the primary live document
        Inspector.Page.on("frameNavigated.livedev", _onFrameNavigated);

        // When the Inspector WebSocket disconnects unexpectedely
        Inspector.on("disconnect.livedev", _onDisconnect);

        _waitForInterstitialPageLoad()
            .fail(function () {
                close();

                Dialogs.showModalDialog(
                    DefaultDialogs.DIALOG_ID_ERROR,
                    Strings.LIVE_DEVELOPMENT_ERROR_TITLE,
                    _makeTroubleshootingMessage(Strings.LIVE_DEV_LOADING_ERROR_MESSAGE)
                );
            })
            .done(_onInterstitialPageLoad);
    }
function _onConnect ( event ) { // When the browser navigates away from the primary live document Inspector . Page . on ( "frameNavigated.livedev" , _onFrameNavigated ) ; // When the Inspector WebSocket disconnects unexpectedely Inspector . on ( "disconnect.livedev" , _onDisconnect ) ; _waitForInterstitialPageLoad ( ) . fail ( function ( ) { close ( ) ; Dialogs . showModalDialog ( DefaultDialogs . DIALOG_ID_ERROR , Strings . LIVE_DEVELOPMENT_ERROR_TITLE , _makeTroubleshootingMessage ( Strings . LIVE_DEV_LOADING_ERROR_MESSAGE ) ) ; } ) . done ( _onInterstitialPageLoad ) ; }
Triggered by Inspector.connect
Triggered by Inspector . connect