I got a connection if I use the AsyncSocket in the AppDelegate. Is it possible to define sockets in views? Because the method to call is named initWithDelegate. I only need the connection in some views. I also need this connection in a thread as aditional class. Can I pass the connection via Constructor?
Share
You can. But you should probably add the socket as a property of a singleton class. That way, you would have access to from from wherever it is needed.