anchor.diff:        return new Future.error(new StateError('Failed to write to socket.'));
       }
   
  -    return completer.future..timeout(
  -        timeout,
  -        onTimeout: () =>
  -            completer.completeError(
  -                new TimeoutException('Failed to get response to '
  -                                     'command $command')));
  +    return completer.future
  +      ..timeout(timeout,
  +          onTimeout: () => completer
  +              .completeError(new TimeoutException('Failed to get response to '
  +                  'command $command')));
     }
   
     /**
  
positive.code:    * when the channel goes away or closing the channel when the socket
     * disconnects and all applications have finished executing.
     */
    Future<Reply> myevents (String uuid, {String format: '',
        int timeoutSeconds: 10}) {
      if (!EventFormat.supportedFormats.contains(format)) {
        return new Future.error(
            new UnsupportedError(
                'Format "$format" unsupported. Supported formats are: '
                    '${EventFormat.supportedFormats.join(', ')}'));
      }
  
      return this._subscribeAndSendCommand(
          'myevents $uuid',
          new Duration(seconds: timeoutSeconds));
    }
  
    /**
  
negative.code:    */
    Future<Reply> bgapi(String command, {int timeoutSeconds: 10}) =>
        this._subscribeAndSendCommand(
            'bgapi ${command}', new Duration(seconds: timeoutSeconds));
  
    /**
     * Authenticate on the FreeSWITCH server.
     */
    Future<Reply> authenticate(String password, {int timeoutSeconds: 10}) =>
        this._subscribeAndSendCommand(
            'auth ${password}', new Duration(seconds: timeoutSeconds));
  
    /**
     * Tells FreeSWITCH not to close the socket connect when a channel hangs up.
  