An implementation of this interface is created by tyrus runtime. Once a
transport completes a successful upgrade for a connection, the transport
can get hold of the handler using Connection#getReadHandler().
| Modifier and Type | Method and Description |
|---|---|
| public void | handle(ByteBuffer
websocket data of a connection. data)A transport reads websocket data and invokes this method to handover websocket data for a connection to tyrus runtime. |
| handle | back to summary |
|---|---|
| public void handle(ByteBuffer data) A transport reads websocket data and invokes this method to handover websocket data for a connection to tyrus runtime. The runtime consumes as much data as possible from the byte buffer. If there is some remaining data in the buffer, transport needs pass those bytes in more call (along with more data) in the same byte buffer or in a newer byte buffer.
| |