Skip to content

Commit a871314

Browse files
authored
Merge pull request #70 from steviemo/okhttp-onclosing
OKHttp no handling of a closing connection
2 parents 0a179d9 + 8526f1d commit a871314

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/main/java/ua/naiksoftware/stomp/OkHttpConnectionProvider.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public void onClosed(WebSocket webSocket, int code, String reason) {
106106
public void onFailure(WebSocket webSocket, Throwable t, Response response) {
107107
emitLifecycleEvent(new LifecycleEvent(LifecycleEvent.Type.ERROR, new Exception(t)));
108108
}
109+
110+
@Override
111+
public void onClosing(final WebSocket webSocket, final int code, final String reason) {
112+
webSocket.close(code, reason);
113+
}
109114
}
110115

111116
);

0 commit comments

Comments
 (0)