WebSocket - websocket 網頁版Spring4實現
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等。