Interface WebsocketFactory.StatusListener

Enclosing class:
WebsocketFactory

public static interface WebsocketFactory.StatusListener
Is called on status changes.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClose(String reason, boolean remote)
    When the connection is closed.
    void
    When the connection is established.
    void
    onError(String message)
    When an error occurred.
  • Method Details

    • onConnect

      void onConnect()
      When the connection is established.
    • onClose

      void onClose(String reason, boolean remote)
      When the connection is closed.
      Parameters:
      reason - the closing reason
      remote - whether it was the local or the remote side
    • onError

      void onError(String message)
      When an error occurred.
      Parameters:
      message - the error message