how to check if connected with server or not ?
Hi,
You can track the connection status in
func stream(_ aStream: Stream, handle eventCode: Stream.Event)
If you want to check in between, then you can add a bool property in SocketDataManager and toggle it based on a stream in closed or not.
i want this return Bool to check it in updateLocation
Hello, Can you provide some more information on what you are trying to achieve?
hello, I send location when app close and if the internet connection down and connect again the connection with socket refuse must connect again I want to check if not connected or connected
Just define a bool in SocketDataManager and make SocketDataManageras singleton so that you can access it from anywhere and check its data. Update the bool in every event.
Hello, i am Not able to get any message from PacketSender. every time the packet sender state disconnecting.
@gyanoroprise Packet sender has a quick time out, so please make sure the Persistent TCP box is checked.... check the picture in the ReadMe