• Dan Rubel's avatar
    Cleanup common port forwarding code (#7142) · 93e662ab
    Dan Rubel authored
    This moves the various copies of port forwarding code in the Device subclasses into the ProtocolDiscovery class.
    
    * move port forwarding to a common location
    * throw exception if protocol Uri is not discovered or port forwarding fails
    * cancel discovery protocol subscriptions on iOS launches (wasn't happening before)
    * fix iOS port forwarding to match other implementations
    * add tests
    93e662ab
protocol_discovery.dart 3.39 KB