Package com.ultikits.ultitools.utils
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 Summary
Modifier and TypeMethodDescriptionvoidvoidonOpen()The upgrade was accepted.voidvoidonUpgradeRefused(int httpStatus, UpgradeRejection rejection)
-
Method Details
-
onOpen
void onOpen()The upgrade was accepted. -
onText
- Parameters:
text- an inbound text frame
-
onUpgradeRefused
- Parameters:
httpStatus- the refused upgrade's statusrejection- the parsed response
-
onClosed
- Parameters:
code- the close codereason- the close reasonremote- whether the peer closed
-