@@ -39469,7 +39469,8 @@ or WebSocket XML namespace:
39469
39469
As explained in the <<websocket-into-fallback-options,introduction>>, WebSocket is not
39470
39470
supported in all browsers yet and may be precluded by restrictive network proxies.
39471
39471
This is why Spring provides fallback options that emulate the WebSocket API as close
39472
- as possible based on the https://github.com/sockjs/sockjs-protocol[SockJS protocol].
39472
+ as possible based on the https://github.com/sockjs/sockjs-protocol[SockJS protocol]
39473
+ (version 0.3.3).
39473
39474
39474
39475
[[websocket-fallback-sockjs-overview]]
39475
39476
==== Overview of SockJS
@@ -39483,14 +39484,14 @@ SockJS consists of:
39483
39484
* The https://github.com/sockjs/sockjs-protocol[SockJS protocol]
39484
39485
defined in the form of executable
39485
39486
http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.html[narrated tests].
39486
- * The https://github.com/sockjs/sockjs-client[SockJS JavaScript client] - a client library for use in browsers.
39487
+ * The https://github.com/sockjs/sockjs-client/tree/v0.3.4 [SockJS JavaScript client] - a client library for use in browsers.
39487
39488
* SockJS server implementations including one in the Spring Framework `spring-websocket` module.
39488
39489
* As of 4.1 `spring-websocket` also provides a SockJS Java client.
39489
39490
39490
39491
SockJS is designed for use in browsers. It goes to great lengths
39491
39492
to support a wide range of browser versions using a variety of techniques.
39492
39493
For the full list of SockJS transport types and browsers see the
39493
- https://github.com/sockjs/sockjs-client[SockJS client] page. Transports
39494
+ https://github.com/sockjs/sockjs-client/tree/v0.3.4 [SockJS client] page. Transports
39494
39495
fall in 3 general categories: WebSocket, HTTP Streaming, and HTTP Long Polling.
39495
39496
For an overview of these categories see
39496
39497
https://spring.io/blog/2012/05/08/spring-mvc-3-2-preview-techniques-for-real-time-updates/[this blog post].
@@ -39587,10 +39588,10 @@ integrate into other HTTP serving environments with the help of
39587
39588
{javadoc-baseurl}/org/springframework/web/socket/sockjs/support/SockJsHttpRequestHandler.html[SockJsHttpRequestHandler].
39588
39589
39589
39590
On the browser side, applications can use the
39590
- https://github.com/sockjs/sockjs-client[sockjs-client] that emulates the W3C
39591
- WebSocket API and communicates with the server to select the best
39591
+ https://github.com/sockjs/sockjs-client/tree/v0.3.4 [sockjs-client] (version 0.3.x) that
39592
+ emulates the W3C WebSocket API and communicates with the server to select the best
39592
39593
transport option depending on the browser it's running in. Review the
39593
- https://github.com/sockjs/sockjs-client[sockjs-client] page and the list of
39594
+ https://github.com/sockjs/sockjs-client/tree/v0.3.4 [sockjs-client] page and the list of
39594
39595
transport types supported by browser. The client also provides several
39595
39596
configuration options, for example, to specify which transports to include.
39596
39597
@@ -39672,7 +39673,7 @@ similar option on the `<websocket:sockjs>` element:
39672
39673
During initial development, do enable the SockJS client `devel` mode that prevents
39673
39674
the browser from caching SockJS requests (like the iframe) that would otherwise
39674
39675
be cached. For details on how to enable it see the
39675
- https://github.com/sockjs/sockjs-client[SockJS client] page.
39676
+ https://github.com/sockjs/sockjs-client/tree/v0.3.4 [SockJS client] page.
39676
39677
====
39677
39678
39678
39679
[[websocket-fallback-sockjs-heartbeat]]
0 commit comments