onceConnection method

  1. @override
void onceConnection({
  1. required HostConnectionHandler handler,
})
inherited

Implementation

@override
void onceConnection({required HostConnectionHandler handler}) {
  onConnection(handler: handler).onData((data) {
    if (data.containsKey(HostEventType.connection)) {
      offConnection(handler: handler);
    }
  });
}