The socket 1.0 client in Swift