SwiftSocket
SwiftSocket copied to clipboard
Socket keep alive scenario
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..