tidwall/SwiftWebSocket

Connection closes every minute or so

DanielSmith1239 opened this issue · 2 comments

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?

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

+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.