Skip to content

Commit

Permalink
Connect asynchronously on JVM platforms to match behaviour on GWT
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStahlfelge committed Nov 18, 2020
1 parent 1b4702b commit b07400c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void connect() throws WebSocketException {
dispose();
final WebSocket currentWebSocket = webSocket = webSocketFactory.createSocket(getUrl());
currentWebSocket.addListener(new NvWebSocketListener(this));
currentWebSocket.connect();
currentWebSocket.connectAsynchronously();
} catch (final Throwable exception) {
throw new WebSocketException("Unable to connect.", exception);
}
Expand Down

0 comments on commit b07400c

Please sign in to comment.