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