@Internal public final class WebSocketIoHandler extends Object implements IOEventHandler
IOSession, pushes data
into the unified WebSocketSessionEngine, and drains outbound frames
when the channel is writable.| Constructor and Description |
|---|
WebSocketIoHandler(ProtocolIOSession session,
WebSocketListener listener,
WebSocketClientConfig cfg,
ExtensionChain chain,
AsyncClientEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
connected(IOSession ioSession) |
void |
disconnected(IOSession ioSession) |
void |
exception(IOSession ioSession,
Exception cause) |
WebSocket |
exposeWebSocket()
Expose the application WebSocket facade.
|
void |
inputReady(IOSession ioSession,
ByteBuffer src) |
void |
outputReady(IOSession ioSession) |
void |
timeout(IOSession ioSession,
Timeout timeout) |
public WebSocketIoHandler(ProtocolIOSession session, WebSocketListener listener, WebSocketClientConfig cfg, ExtensionChain chain, AsyncClientEndpoint endpoint)
public WebSocket exposeWebSocket()
public void connected(IOSession ioSession)
connected in interface IOEventHandlerpublic void inputReady(IOSession ioSession, ByteBuffer src)
inputReady in interface IOEventHandlerpublic void outputReady(IOSession ioSession)
outputReady in interface IOEventHandlerpublic void timeout(IOSession ioSession, Timeout timeout)
timeout in interface IOEventHandlerpublic void exception(IOSession ioSession, Exception cause)
exception in interface IOEventHandlerpublic void disconnected(IOSession ioSession)
disconnected in interface IOEventHandlerCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.