Interface CanHandleDisconnects

All Known Implementing Classes:
StringWebSocketClient

public interface CanHandleDisconnects
  • Method Details

    • getDisconnectionHandlers

      List<Runnable> getDisconnectionHandlers()
      Returns a list of all registered web socket disconnection handlers.
      Returns:
      The list of web socket disconnection handlers.
    • addDisconnectionHandler

      default void addDisconnectionHandler(Runnable handler)
      Register a new web socket disconnect handler.
      Parameters:
      handler - a callback function, which is going to be executed when web socket disconnect event arrives
    • removeDisconnectionHandlers

      default void removeDisconnectionHandlers()
      Removes existing disconnection handlers.