public static enum WebSocket.READYSTATE extends Enum<WebSocket.READYSTATE>
| Enum Constant and Description |
|---|
CLOSED |
CLOSING |
CONNECTING
Deprecated.
|
NOT_YET_CONNECTED |
OPEN |
| Modifier and Type | Method and Description |
|---|---|
static WebSocket.READYSTATE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocket.READYSTATE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocket.READYSTATE NOT_YET_CONNECTED
@Deprecated public static final WebSocket.READYSTATE CONNECTING
public static final WebSocket.READYSTATE OPEN
public static final WebSocket.READYSTATE CLOSING
public static final WebSocket.READYSTATE CLOSED
public static WebSocket.READYSTATE[] values()
for (WebSocket.READYSTATE c : WebSocket.READYSTATE.values()) System.out.println(c);
public static WebSocket.READYSTATE valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.