What is NIO Transport Services and when to use it?
mainNIO Transport Services (NIOTS) is an extension to SwiftNIO that provides first-class support for Apple platforms by leveraging Network.framework for connectivity and Dispatch for concurrency.
Key Benefits
- Network.framework Integration: Provides richer insights into network behavior than standard NIO, including the ability to wait for connectivity until a network route is available.
- Native Support: Includes built-in support for proxy and VPN configurations provided by the OS.
- Seamless Migration: Regular SwiftNIO applications can migrate to NIOTS by simply replacing their existing
EventLoop,EventLoopGroup, andBootstrapimplementations with the NIOTS alternatives.
Supported Platforms
NIOTS is functionally useful on platforms where Network.framework is available:
- macOS 10.14+
- iOS 12+
- tvOS 12+
- watchOS 6+