tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 244 forks source link

Configure SwiftWebSocket in background #114

Open CRoig opened 6 years ago

CRoig commented 6 years ago

All delegate methods plus the socket establishment are triggered on the main-thread. This is blocking UI and causing ugly glitches. is there anything I can configure to run everything in the background threads?

chadham commented 6 years ago

If you create the socket in a background thread, associated calls should also be in the background thread, no?