iOS drops connection?

I have TCPSocket on one of my iOS views. The problem i’m facing is once it is connected to my server app. The connection instantly drops again.
No code using disconnect. The TCP Socket has been set via the IDE so it’s visible there.

Anyone has seen this before know the cause?

sorry the socket is a property of the ios view. instance is created in the ios view open event.

Is there an error code?

Yes, first i get a connected event, instantly after it i get error event with 102 error (lost connection)