N
N
Niemand2014-02-11 18:13:23
Mobile development
Niemand, 2014-02-11 18:13:23

How to organize work with sockets in applications?

Hello.

We are going to change data transfer in applications (iOS, Android) from requests to Sockets. What are the practices for dealing with sockets on the client side? For now, I imagine it this way: all incoming events are sorted out by one manager, which, after processing the received data (if necessary), sends a Broadcast message (for example, via NSNotificationCenter in iOS), and those who subscribe to them themselves figure out what to do with them, with it makes no difference who sent the message to the server and whether it was sent at all (as happens in normal requests).
What other options are there?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question