I have an iPhone app that exchange data with a device over the LAN and send those to the WatchKit extension using the SendData method. All is working fine, but when the iPhone is suspended/sleeping I noticed that the NSStreamEvent.ErrorOccurred for the input stream is fired up with this message:
Error Domain=NSPOSIXErrorDomain Code=57 \"Socket is not connected"
It seems like the iPhone is losing its wifi connection. Do i suppose that when suspended the iPhone can't keep its socket connections opened?