Skip to content

Instantly share code, notes, and snippets.

@standinga
Created November 30, 2020 08:03
Show Gist options
  • Save standinga/1e51827e4489f8d94c0012d4a98d2b54 to your computer and use it in GitHub Desktop.
Save standinga/1e51827e4489f8d94c0012d4a98d2b54 to your computer and use it in GitHub Desktop.
IOS/OSX Networking updated brower
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