Package | Description |
---|---|
org.asynchttpclient.netty.ws | |
org.asynchttpclient.ws |
Modifier and Type | Class and Description |
---|---|
class |
NettyWebSocket |
Modifier and Type | Method and Description |
---|---|
WebSocket |
NettyWebSocket.addWebSocketListener(WebSocketListener l) |
WebSocket |
NettyWebSocket.removeWebSocketListener(WebSocketListener l) |
WebSocket |
NettyWebSocket.sendMessage(byte[] message) |
WebSocket |
NettyWebSocket.sendMessage(String message) |
WebSocket |
NettyWebSocket.sendPing(byte[] payload) |
WebSocket |
NettyWebSocket.sendPong(byte[] payload) |
WebSocket |
NettyWebSocket.stream(byte[] fragment,
boolean last) |
WebSocket |
NettyWebSocket.stream(byte[] fragment,
int offset,
int len,
boolean last) |
WebSocket |
NettyWebSocket.stream(String fragment,
boolean last) |
Modifier and Type | Field and Description |
---|---|
protected WebSocket |
DefaultWebSocketListener.webSocket |
Modifier and Type | Method and Description |
---|---|
WebSocket |
WebSocket.addWebSocketListener(WebSocketListener l)
Add a
WebSocketListener |
WebSocket |
WebSocketUpgradeHandler.onCompleted()
Invoked once the HTTP response processing is finished.
|
WebSocket |
WebSocket.removeWebSocketListener(WebSocketListener l)
Remove a
WebSocketListener |
WebSocket |
WebSocket.sendMessage(byte[] message)
Send a byte message.
|
WebSocket |
WebSocket.sendMessage(String message)
Send a text message
|
WebSocket |
WebSocket.sendPing(byte[] payload)
Send a
ping with an optional payload
(limited to 125 bytes or less). |
WebSocket |
WebSocket.sendPong(byte[] payload)
Send a
ping with an optional payload
(limited to 125 bytes or less). |
WebSocket |
WebSocket.stream(byte[] fragment,
boolean last)
Allows streaming of multiple binary fragments.
|
WebSocket |
WebSocket.stream(byte[] fragment,
int offset,
int len,
boolean last)
Allows streaming of multiple binary fragments.
|
WebSocket |
WebSocket.stream(String fragment,
boolean last)
Allows streaming of multiple text fragments.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketListener.onClose(WebSocket websocket)
Invoked when the
WebSocket is close. |
void |
DefaultWebSocketListener.onClose(WebSocket websocket)
Invoked when the
WebSocket is close. |
void |
WebSocketUpgradeHandler.onClose(WebSocket webSocket,
int status,
String reasonPhrase) |
void |
WebSocketCloseCodeReasonListener.onClose(WebSocket websocket,
int code,
String reason)
Invoked when the
WebSocket is close. |
void |
WebSocketListener.onOpen(WebSocket websocket)
Invoked when the
WebSocket is open. |
void |
DefaultWebSocketListener.onOpen(WebSocket websocket)
Invoked when the
WebSocket is open. |
void |
WebSocketUpgradeHandler.onSuccess(WebSocket webSocket)
If the HTTP Upgrade succeed (response's status code equals 101), the
AsyncHttpClient will invoke that method. |
Copyright © 2015. All Rights Reserved.