Interface WebSocketClosedCallback

  • 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 WebSocketClosedCallback
    • Method Detail

      • onClosed

        void onClosed​(int code,
                      String reason)
        onclosed will be called when websocket connection has been successfully released. No further calls to this listener will be made.
        Parameters:
        code - The code send by server.
        reason - The reason send by server.