Summary: | 碩士 === 元智大學 === 資訊工程學系 === 100 === Nowadays, web page becomes more various and complex and the communication consequently is more demanded. For the hot web “facebook”, it is necessary to achieve the ability of refresh in real time. Even though browsers provide the refresh icon for people to update the information on web page, the application protocol of http still can’t satisfy people who need to click the refresh icon frequently on the web pages which are designed to be more and more humanized. Because the action of clicking the refresh icon is inefficient and may cause some current information lost due to one-direction communication of http, WebSocket is the answer to solve the above problems.
This paper realizes the structure of full-duplex communication in both direction between clients and servers by utilizing WebSocket. In this structure, not only clients send information to servers but also servers send information to clients at the same time. Through the implementation, this paper also compare the the advantages, disadvantages and differences between Websocket and HTTP.
|