Package | Description |
---|---|
ej.websocket |
This package gathers the classes managing WebSocket.
|
ej.websocket.frame |
This package gathers the classes handling the frames of a WebSocket.
|
ej.websocket.util |
This package gathers the util classes.
|
Modifier and Type | Method and Description |
---|---|
ReasonForClosure |
ReasonForClosure.setCode(int code)
Change the close code.
|
ReasonForClosure |
ReasonForClosure.setReason(java.lang.String reason)
Change the close reason.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocket.close(ReasonForClosure reasonForClosure)
Close the websocket connection as described in Section 7.
|
void |
Endpoint.onClose(WebSocket ws,
ReasonForClosure closeReason)
The associated
WebSocket is about to close. |
Modifier and Type | Method and Description |
---|---|
RawFrame |
ClientFrameBuilder.buildCloseFrame(ReasonForClosure reasonForClosure) |
RawFrame |
IFrameBuilder.buildCloseFrame(ReasonForClosure reasonForClosure)
See RFC6455, section 7.
|
Modifier and Type | Method and Description |
---|---|
void |
EndpointAdapter.onClose(WebSocket ws,
ReasonForClosure closeReason) |