SwiftSocket icon indicating copy to clipboard operation
SwiftSocket copied to clipboard

Socket keep alive scenario

Open nneuberger1 opened this issue 6 years ago • 0 comments

I would like to receive a response or some type of callback when the socket immediately closes because of either a networking or hardware related issue.

Some solutions as keep alive are available in most linux environments that constantly checks if a connection is alive or not.

I found this thread discussing the topic from a Swift / Obj perspective. https://stackoverflow.com/questions/15785917/nsstream-tcp-keep-alive-ios

Here's another. https://stackoverflow.com/questions/25632257/swift-tcp-socket-keep-alive

But I'm wondering if this can be used with this SwiftSocket library or not.

Any thoughts?

Thanks..

nneuberger1 avatar Jun 14 '18 20:06 nneuberger1