...Simply add the package dependency to your Package.swift and depend on "CocoaAsyncSocket" in the necessary targets. You can also include it into your project by adding the source files directly, but you should probably be using a dependency manager to keep up to date. GCDAsyncSocket is a TCP/IP socket networking library built atop Grand Central Dispatch. Automatically accept incoming connections over both IPv4 and IPv6 with a single instance of this class. No more worrying about multiple sockets. Secure your socket with ease using just a single method call. ...