public interface WebSocketProtocolStream extends WebSocketProtocol
WebSocketProtocol implements this interface,
bytes/text will ve streamed instead of read in memory.| Modifier and Type | Method and Description |
|---|---|
List<AtmosphereRequest> |
onBinaryStream(WebSocket webSocket,
InputStream stream)
Parse the WebSocket stream, and delegate the processing to the
AtmosphereFramework.asyncSupport or
to any existing technology. |
List<AtmosphereRequest> |
onTextStream(WebSocket webSocket,
Reader r)
Parse the WebSocket stream, and delegate the processing to the
AtmosphereFramework.asyncSupport or
to any existing technology. |
onClose, onError, onMessage, onMessage, onOpenconfigureList<AtmosphereRequest> onTextStream(WebSocket webSocket, Reader r)
AtmosphereFramework.asyncSupport or
to any existing technology. Invoking AtmosphereFramework.asyncSupport will delegate the request processing
to the AtmosphereHandler implementation. Returning null means this implementation will
handle itself the processing/dispatching of the WebSocket's request;
webSocket - The WebSocket connectionr - a ReaderAtmosphereRequestList<AtmosphereRequest> onBinaryStream(WebSocket webSocket, InputStream stream)
AtmosphereFramework.asyncSupport or
to any existing technology. Invoking AtmosphereFramework.asyncSupport will delegate the request processing
to the AtmosphereHandler implementation. Returning null means this implementation will
handle itself the processing/dispatching of the WebSocket's request;
webSocket - The WebSocket connectionstream - a ReaderAtmosphereRequestCopyright © 2016. All rights reserved.