code: 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);
          }
docs: 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.