Open tonyth00 opened 6 years ago
Try webSocket.close(); wsClient.close();
WebSocket.close ()
does not work for me;
If you do something
webSocketClient.onAggTradeEvent((fromToken + toToken).toLowerCase(), response -> System.out.println(response.getPrice())).close();
then I get an exceptionjava.lang.NullPointerException: Parameter specified as non-null is null: method okhttp3.WebSocketListener.onClosed, parameter reason
.
Using onAggTradeEvent(). Tried closing the stream using close() but the web socket client keeps sending callbacks.