Modifier and Type | Method and Description |
---|---|
WebSocketState |
WebSocket.getState()
Get the current state of this WebSocket.
|
static WebSocketState |
WebSocketState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketState[] |
WebSocketState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketAdapter.onStateChanged(WebSocket websocket,
WebSocketState newState) |
void |
WebSocketListener.onStateChanged(WebSocket websocket,
WebSocketState newState)
Called after the state of the WebSocket changed.
|
Copyright © 2021. All rights reserved.