anchor.diff:  part of esl;
   
  +/// "Enum" of event formats.
   abstract class EventFormat {
     static String Plain = "plain";
     static String Json  = "json";
     static String Xml   = "xml";
   
  +  /**
  +   * As of now, only JSON format is supported. Most of the raw packet handling
  +   * is done internally, so the transport serialization should be insignificant
  +   * for the usage og the library.
  +   */
     static List<String> supportedFormats = [Json];
   }
   
  +/**
  + * FreeSWTICH event socket connection.
  + */
   class Connection {
   
     final Logger log = new Logger (libraryName);
  
positive.code:       }
      }
      else {
        this.log.info ('Discarding unknown packet type ${packet.contentType}');
      }
    }
  
    Future<Packet> _sendCommand(String command) {
  
      Completer<Packet> completer= new Completer<Packet>();
  
      this._nonEventStream.stream.first.then((Packet packet) {
        completer.complete(packet);
      }).catchError((error) {
        completer.completeError(error);
      });
  
      this._writeCommandToSocket(command);
  
      return completer.future;
    }
  
    void _writeCommandToSocket (String command) {
      this._socket.writeln('${command}\n');
    }
  }
  
negative.code:    return this._sendSerializedCommand (command, completer, timeout);
    }
  
    /**
     * Send pre-serialized command.
     */
    Future _sendSerializedCommand (String command, Completer completer, Duration timeout) {
        /// Write the command to socket.
        /// XXX: Figure out if writeln will ever throw an exception.
  