The contents of this message as a stream.
Returns the strict message data if this message is strict, throws otherwise.
Returns the strict message data if this message is strict, throws otherwise.
Is this message a strict one?
Is this message a strict one?
Returns this BinaryMessage if it is a binary message, throws otherwise.
Returns this BinaryMessage if it is a binary message, throws otherwise.
Returns this TextMessage if it is a text message, throws otherwise.
Returns this TextMessage if it is a text message, throws otherwise.
Java API
Java API
Is this message a text message? If true, asTextMessage will return this text message, if false, asBinaryMessage will return this binary message.
Is this message a text message? If true, asTextMessage will return this text message, if false, asBinaryMessage will return this binary message.
Collects all possible parts and returns a potentially future Strict Message for easier processing.
Collects all possible parts and returns a potentially future Strict Message for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout.
Represents a WebSocket binary message. A binary message can either be BinaryMessage.Strict in which case the complete data is already available or it can be BinaryMessage.Streamed in which case
dataStream
will return a Source streaming the data as it comes in.