src/LiveDevelopment/MultiBrowserImpl/protocol/remote/LiveDevProtocolRemote.js
function (msgStr) {
            var msg;
            try {
                msg = JSON.parse(msgStr);
            } catch (e) {
                console.log("[Brackets LiveDev] Malformed message received: ", msgStr);
                return;
            }
            // delegates handling/routing to MessageBroker.
            MessageBroker.trigger(msg);
        }
function (msgStr) {
            var msg;
            try {
                msg = JSON.parse(msgStr);
            } catch (e) {
                console.log("[Brackets LiveDev] Malformed message received: ", msgStr);
                return;
            }
            // delegates handling/routing to MessageBroker.
            MessageBroker.trigger(msg);
        }
function ( msgStr ) { var msg ; try { msg = JSON . parse ( msgStr ) ; } catch ( e ) { console . log ( "[Brackets LiveDev] Malformed message received: " , msgStr ) ; return ; } // delegates handling/routing to MessageBroker. MessageBroker . trigger ( msg ) ; }
Handles a message from the transport. Parses it as JSON and delegates
to MessageBroker who is in charge of routing them to handlers.
@param {string} msgStr The protocol message as stringified JSON.
Handles a message from the transport . Parses it as JSON and delegates to MessageBroker who is in charge of routing them to handlers .