- addListener
Add a listener to receive events on this WebSocket.
- connect
Execute #connect() asynchronously using the given ExecutorService. This method
is just an alias of t
- sendText
Send a text frame to the server. This method is an alias of
#sendFrame(WebSocketFrame)
(WebSocketFra
- disconnect
Disconnect the WebSocket. This method is an alias of #disconnect(int,String)
(WebSocketCloseCode#NOR
- isOpen
Check if the current state of this WebSocket is WebSocketState#OPEN.
- connectAsynchronously
Execute #connect() asynchronously by creating a new thread and calling connect()
in the thread. If c
- sendClose
Send a close frame to the server. This method is an alias of
#sendFrame(WebSocketFrame)
(WebSocketFr
- addExtension
Add a value for Sec-WebSocket-Extension. The input string should comply with the
format described in
- clearListeners
Remove all the listeners from this WebSocket.
- recreate
Create a new WebSocket instance that has the same settings as this instance.
Note that, however, set
- sendFrame
Send a WebSocket frame to the server. This method just queues the given frame.
Actual transmission i
- setPingInterval
Set the interval of periodicalping
[https://tools.ietf.org/html/rfc6455#section-5.5.2] frames. Setti