nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

connect to socket blocks ui thread #138

Closed ilandbt closed 7 years ago

ilandbt commented 7 years ago

Hi, Call socket.connect the UI thread gets blocked. I tried calling the connect in

DispatchQueue.global(qos: .background).async {

                self.socket.connect()

            }

And it still getting blocked.

am i missing something?

Thanks