ObbyAsyncClient constructor

ObbyAsyncClient(
  1. Stream<List<int>> incoming,
  2. void send(
    1. List<int> data
    ), {
  3. required String nick,
  4. String? username,
  5. String? realname,
  6. String? password,
  7. SaslCredentialsInput? sasl,
  8. int? retention,
  9. List<String>? altNicks,
  10. String? libraryPath,
})

Build the engine and start driving it over incoming/send. Only nick is required; every other field has the same default ObbyClient.new does.

Implementation

ObbyAsyncClient(
  Stream<List<int>> incoming,
  void Function(List<int> data) send, {
  required String nick,
  String? username,
  String? realname,
  String? password,
  SaslCredentialsInput? sasl,
  int? retention,
  List<String>? altNicks,
  String? libraryPath,
}) : this.withClient(
       ObbyClient(
         nick: nick,
         username: username,
         realname: realname,
         password: password,
         sasl: sasl,
         retention: retention,
         altNicks: altNicks,
         libraryPath: libraryPath,
       ),
       incoming,
       send,
     );