Closed finleyowen closed 3 years ago
@finleyowen What platform are you targeting, and what OS version?
@finleyowen What platform are you targeting, and what OS version?
iOS 14.0
@finleyowen Ah, I've found the issue - you need to also import Network
(as well as import NWWebSocket
).
I will either update the README to reflect this, or make it so importing Apple's Network framework isn't necessary in a future release. Please let me know if that solves your issue.
@danielrbrowne yep, that worked. Thank you! Would you like me to close this issue, or leave it open for others with the same question?
I'll leave this open for now as there's an action on me to make a change either way.
Hi, I am trying to create a NWWebSocket, and I've pasted the following code from the documentation:
Xcode is giving me the error:
Cannot find type 'NWError' in scope
and the same error forNWProtocolWebSocket
.Am I doing something wrong? Any help appreciated.
Thanks