Problem with creating chat room application
问题 I am trying to create a chatroom like application for some website. For this I am having two options: To use socket programming and open a socket at server and connect this to all the clients who are in that chat room. for this client first download the applet of the chat room. just to send requests to server with Ajax continuously with 1 second interval and refreshing the chat content area of page. I can't decide which stretagy will be better. So if anyone tell me which will be less resource