SwiftWebSocket icon indicating copy to clipboard operation
SwiftWebSocket copied to clipboard

Connection closes every minute or so

Open DanielSmith1239 opened this issue 6 years ago • 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?

DanielSmith1239 avatar Apr 02 '18 19:04 DanielSmith1239

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

ghost avatar May 03 '18 04:05 ghost

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

nicefella avatar Nov 07 '18 08:11 nicefella