Upvote:6

let manager = SocketManager(socketURL: URL(string: "http://localhost:8080")!, config: [.compress, .forceWebsockets(true)])
let socket = manager.defaultSocket

More Answer related to the Same Query

Upvote:1

pod 'Socket.IO-Client-Swift', '~> 15.2.0'

Upvote:0

... NSURL(string: "ws://37.203.216.82") ...

Credit Goes to: stackoverflow.com

Related question with same questions but different answers