I read some tutorials and also checked some examples of Socket Programming for my chat application but I noticed one thing that if we are using socket programming still we need to hit web service again and again in a thread to get new messages from server. Now my question is: If we need to hit web service again and again, then what is the need to do this using socket? We can get chat messages directly from server by hitting web service again and again.
EDIT: I make a chat app simply hitting web service again and again to get new messages, I am using Intent Service. Its working fine but i know this is not the standard way for chatting.