Interface WebSocketClosingCallback

  • 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 WebSocketClosingCallback
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onClosing​(int code, String reason)
      onClosing will be called when websocket is informed that no more incoming messages will be transmitted.
    • Method Detail

      • onClosing

        void onClosing​(int code,
                       String reason)
        onClosing will be called when websocket is informed that no more incoming messages will be transmitted.
        Parameters:
        code - The code send by server.
        reason - The reason send by server.