Update SockJS client code snippet

This commit is contained in:
holub 2015-12-28 14:48:24 -05:00 committed by Sebastien Deleuze
parent 8968f09c59
commit 9152f20bc1
1 changed files with 1 additions and 1 deletions

View File

@ -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);