Browse Source

Update SockJS client code snippet

pull/946/head
holub 10 years ago committed by Sebastien Deleuze
parent
commit
9152f20bc1
  1. 2
      src/asciidoc/web-websocket.adoc

2
src/asciidoc/web-websocket.adoc

@ -932,7 +932,7 @@ The example below shows how to create a SockJS client and connect to a SockJS en @@ -932,7 +932,7 @@ The example below shows how to create a SockJS client and connect to a SockJS en
[subs="verbatim,quotes"]
----
List<Transport> transports = new ArrayList<>(2);
transports.add(new WebSocketTransport(StandardWebSocketClient()));
transports.add(new WebSocketTransport(new StandardWebSocketClient()));
transports.add(new RestTemplateXhrTransport());
SockJsClient sockJsClient = new SockJsClient(transports);

Loading…
Cancel
Save