Interface AgentConnection.SocketEvents

All Known Implementing Classes:
AgentConnection.AttemptEvents
Enclosing class:
AgentConnection

static interface AgentConnection.SocketEvents
Events of one attempt's socket; each instance is bound to one attempt id.
  • Method Details

    • onOpen

      void onOpen()
      The upgrade was accepted.
    • onText

      void onText(String text)
      Parameters:
      text - an inbound text frame
    • onUpgradeRefused

      void onUpgradeRefused(int httpStatus, UpgradeRejection rejection)
      Parameters:
      httpStatus - the refused upgrade's status
      rejection - the parsed response
    • onClosed

      void onClosed(int code, String reason, boolean remote)
      Parameters:
      code - the close code
      reason - the close reason
      remote - whether the peer closed