obby_client_async library

An async driver for ObbyClient, giving a host a Stream<ObbyEvent> and owning the poll/drain loop for it.

A separate library from obby_client.dart on purpose: the sans-io engine and its manual loop are untouched and keep working.

Classes

ObbyAsyncClient
Drives an ObbyClient off an already-open transport: bytes in through incoming, bytes out through send. A dart:io Socket supplies both: pass the socket itself as incoming and socket.add as send. A WebSocket, or any other Stream<List<int>> with a matching sink, fits the same way.