tidwall / SwiftWebSocket

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

Connection closes every minute or so #120

Open DanielSmith1239 opened 6 years ago

DanielSmith1239 commented 6 years ago

Hey, I’m trying to use this API in a project of mine, but I’m running in to an issue. The socket connection closes every minute or so, and I have to keep reopening the connection. I’m using Swift 4. You have any ideas?

ghost commented 6 years ago

i have same issue. When i call socket resume (after internet connection reconnected), socket closes and opens every minute

nicefella commented 5 years ago

+1 it looked like to me a timeout issue (currently set to 30 as a hardcoded value) but i figured out that this closing event is not triggered as a consequence of a timeout.