Takes the ServletInputStream, processes the WebSocket frames it contains and
extracts the messages. WebSocket Pings received will be responded to
automatically without any action required by the application.
WAITING - not suspended
Server case: waiting for a notification that data
is ready to be read from the socket, the socket is
registered to the poller
Client case: data has been read from the socket and
is waiting for data to be processed
PROCESSING - not suspended
Server case: reading from the socket and processing
Client case: processing the data if such has
already been read and more data will be read from
SUSPENDING_WAIT - suspended, a call to suspend() was made while in
This method will be invoked when the read operation is resumed.
As the suspend of the read operation can be invoked at any time, when
implementing this method one should consider that there might still be
data remaining into the internal buffers that needs to be processed
before reading again from the socket.