code: function setTransport(transport) {
          if (_transport) {
              _transport.off(".livedev");
          }
          _transport = transport;
  
          _transport
              .on("connect.livedev", function (event, msg) {
                  _connect(msg[0], msg[1]);
              })
              .on("message.livedev", function (event, msg) {
                  _receive(msg[0], msg[1]);
              })
              .on("close.livedev", function (event, msg) {
                  _close(msg[0]);
              });
          _transport.start();
      }
docs: Sets the transport that should be used by the protocol. See `LiveDevelopment.setTransport()`
  for more detail on the transport.
  @param {{start: function(string), send: function(number|Array.<number>, string), close: function(number), getRemoteScript: function(): ?string}} transport