Returns the strict message text if this message is strict, throws otherwise.
Returns the strict message text if this message is strict, throws otherwise.
Is this message a strict one?
Is this message a strict one?
The contents of this message as a stream.
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.
Represents a WebSocket text message. A text message can either be a TextMessage.Strict in which case the complete data is already available or it can be TextMessage.Streamed in which case
textStream
will return a Source streaming the data as it comes in.