Returns this BinaryMessage if it is a binary message, throws otherwise.
Returns this TextMessage if it is a text message, throws otherwise.
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 message. A message can either be a binary message or a text message.