We need communications for
- Sending messages
- Getting friends status
- Reeving messages
- and so on…
It would better to have a web socket connection where we can exchange different type of info b/w client and server in real time.
If we go with long poll approach, i am not sure how will we handle different type of requests, i think there is to be a long poll request for each operation(from above 4) we want to perform.
For polling of new messages, it will be a frequent poll request,but for sending messages, we can initiate a new request whenever we want to send messages.
For retrieving status of friends can be a less frequent request .
So as i see, if we got by polling, we have different requests.
Let me know your thoughts