Skip to content

Commit

Permalink
fix macOS and tvOS network service type check
Browse files Browse the repository at this point in the history
  • Loading branch information
umair-ably committed Aug 5, 2024
1 parent 1303fe4 commit fc36b95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/SocketRocket/Internal/Utilities/ARTSRURLUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ extern BOOL ARTSRURLRequiresSSL(NSURL *url)
networkServiceType = NSStreamNetworkServiceTypeVoice;
break;

#if (TARGET_OS_MACCATALYST || TARGET_OS_MAC) && !TARGET_OS_TV && !TARGET_OS_IOS
case NSURLNetworkServiceTypeVoIP:
networkServiceType = NSStreamNetworkServiceTypeVoIP;
break;
#endif

#if _ARTSR_XCODE_VERSION_11_OR_LATER
case NSURLNetworkServiceTypeAVStreaming:
networkServiceType = NSStreamNetworkServiceTypeVideo;
Expand Down

0 comments on commit fc36b95

Please sign in to comment.