socket.io-client-swift
socket.io-client-swift copied to clipboard
Declare configs on Swift 2.3
Hi Guys,
So sorry for this simple question, But how do i declare configs on the socketioclient ?
previously I can just copy the example on readme, which is, let socket = SocketIOClient(socketURL: URL(string: "http://localhost:8080")!, config: [.log(true), .forcePolling(true)])
now i can only do this, self.socket = SocketIOClient(socketURL: NSURL(string: "http://localhost:8080")!)
adding configs will throw me an error, any suggestion ?
That's easy than I Thought.
socket = SocketIOClient(socketURL: NSURL(string: "http://localhost:8080")!,config:[.ForceWebsockets(true)])
Thanks