public interface FragmentedMessageChannel
Modifier and Type | Method and Description |
---|---|
WebSocketChannel |
getWebSocketChannel() |
StreamSinkFrameChannel |
send(long payloadSize,
boolean finalFrame)
Returns a new
StreamSinkFrameChannel for sending the given WebSocketFrameType with the given payload. |
StreamSinkFrameChannel send(long payloadSize, boolean finalFrame) throws IOException
StreamSinkFrameChannel
for sending the given WebSocketFrameType
with the given payload.
If this method is called multiple times, subsequent StreamSinkFrameChannel
's will not be writable until all previous frames
were completely written.payloadSize
- The size of the payload which will be included in the WebSocket Frame. This may be 0 if you want
to transmit no payload at all.finalFrame
- if true any futher attempt to use this channel will throw an IllegalStateException
IOException
WebSocketChannel getWebSocketChannel()
Copyright © 2013 JBoss by Red Hat. All rights reserved.