swiftsocket / SwiftSocket

The easy way to use sockets on Apple platforms
BSD 3-Clause "New" or "Revised" License
1.68k stars 401 forks source link

Restrict the socket to use either Wi-Fi only or cellular network. #167

Open platinum7919 opened 5 years ago

platinum7919 commented 5 years ago

Is there a way to achieve this like setAllowsCellularAccess method NSURLSession.

Nathipha commented 5 years ago

The swift file you can find here returns the type of connection, then you can just act accordingly.