Read part of a message.
template< class MutableBufferSequence> std::size_t read_some( MutableBufferSequence const& buffers, error_code& ec);
This function is used to synchronously read some message data from the stream. The call blocks until one of the following is true:
This operation is implemented in terms of one or more calls to the next
Received message data, if any, is written to the buffer sequence. The
websocket::stream::got_text may be used to query
the stream and determine the type of the last received message. The function
websocket::stream::is_message_done may be called
to determine if the message received by the last read operation is complete.
While this operation is active, the implementation will read incoming control frames and handle them automatically as follows:
websocket::stream::control_callbackwill be invoked for each control frame.
websocket::closedwill be indicated.
The number of message payload bytes written to the buffer sequence.
A buffer sequence to hold the message data after any masking or decompression has been applied.
Set to indicate what error occurred, if any.