public interface WebSocketStreamingHandler extends WebSocketHandler
WebSocketProcessor will invoke this class
instead of reading bytes in memory.| Modifier and Type | Method and Description |
|---|---|
void |
onBinaryStream(WebSocket webSocket,
InputStream inputStream)
Invoked when a byte message is received.
|
void |
onTextStream(WebSocket webSocket,
Reader reader)
Invoked when a String message is received
|
onByteMessage, onClose, onError, onOpen, onTextMessagevoid onBinaryStream(WebSocket webSocket, InputStream inputStream) throws IOException
webSocket - a WebSocketinputStream - IOExceptionvoid onTextStream(WebSocket webSocket, Reader reader) throws IOException
webSocket - a WebSocketreader - IOExceptionCopyright © 2016. All rights reserved.