Created
November 30, 2020 08:03
-
-
Save standinga/1e51827e4489f8d94c0012d4a98d2b54 to your computer and use it in GitHub Desktop.
IOS/OSX Networking updated brower
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser.browseResultsChangedHandler = { results, changes in | |
for result in results { | |
if case NWEndpoint.service = result.endpoint { | |
log("browser.browseResultsChangedHandler result: \(result)") | |
if sharedConnection == nil { | |
sharedConnection = Connection(endpoint: result.endpoint) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment