Details
Description
We are trying to evaluate jetty and netty(JBOSS) for web socket support.
so we want to know , is there any class or method support to send large data (may be chunked form) in jetty.
Bcoz it is supported in Netty.
Sumit Thakur
Jetty supports writes of data via WebSocket through class WebSocket.Connection and two methods:
sendMessage(String data)
sendMessage(byte[] data, int offset, int length)
If the data to be written is larger than the buffer that Jetty uses internally, then it is split into multiple WebSocket frames, transparently.
Therefore, Jetty supports sending of large data without problems.
Note that "chunking" is a concept of HTTP (as in Transfer-Encoding: chunked) and does not apply to WebSocket.