Interface WebSocketFailureCallback

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface WebSocketFailureCallback
    • Method Detail

      • onFailure

        void onFailure​(Throwable t,
                       okhttp3.Response response)
        onFailure will be called when the websocket has been closed and an error has occurred.
        Parameters:
        t - The exception thrown by server.
        response - The associated response.