Skip to content

Commit 780f44a

Browse files
committed
Send error to client when no connection to server
1 parent 8972224 commit 780f44a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnetcoresignalrclientjava/src/main/java/com/smartarmenia/dotnetcoresignalrclientjava/WebSocketHubConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private void getConnectionId() {
103103
throw runtimeException;
104104
}
105105
} catch (Exception e) {
106-
e.printStackTrace();
106+
error(e);
107107
}
108108
}
109109

@@ -119,7 +119,7 @@ private void connectClient() {
119119
try {
120120
client = new WebSocketClient(new URI(uri.toString()), new Draft_6455(), headers, 15000) {
121121
@Override
122-
public void onOpen(ServerHandshake handshakedata) {
122+
public void onOpen(ServerHandshake handshakeData) {
123123
Log.i(TAG, "Opened");
124124
for (HubConnectionListener listener : listeners) {
125125
listener.onConnected();

0 commit comments

Comments
 (0)