WebSocket - websocket 網頁版Spring4實現

jopen 8年前發布 | 44K 次閱讀 WebSocket WebSocket 開發

WebSocket

websocket web version realize Spring4

One of the biggest is that Spring 4.0 update adds support websocket of. websocket provides an efficient, two-way communication in web applications, you need to take into account the high-frequency and low-latency messages exchanged between the client (browser) and server. General application scenarios are: online trading, gaming, collaboration, data visualization.   Websocket to consider using browser support (IE <10 not supported), the current mainstream browsers can be a good support websocket. websocket agreement has some sub-protocol, it can be realized from a higher level programming model, as we use the same HTTP instead of TCP. These sub-protocols are STOMP, WAMP, etc.

websocket 網頁版Spring4實現

Spring 4.0的一個最大更新是增加了websocket的支持。websocket提供了一個在web應用中的高效、雙向的通訊,需要考慮到客戶端(瀏覽器)和服務器之間的高頻和低延時消息交換。一般的應用場景有:在線交易、游戲、協作、數據可視化等。

使用websocket需要考慮的瀏覽器的支持(IE<10不支持),目前主流的瀏覽器都能很好的支持websocket。 websocket協議中有一些子協議,可以從更高的層次實現編程模型,就像我們使用HTTP而不是TCP一樣。這些子協議有STOMP,WAMP等。

項目地址: https://github.com/ZhouXing244266602/WebSocket

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!