This pull request simplifies OutgoingMessageEncoder and IncomingMessageDecoder by introducing RawOutgoingMessage and RawIncomingMessage. This prevents the user from accidentally encoding an WebSocketMessage.open, and it also makes it clear the user shouldn't try to decode WebSocketMessage.open, either. Additionally, this allows custom encoders to determine how the WebSocket should send the message: as a binary or as text.
This pull request simplifies
OutgoingMessageEncoder
andIncomingMessageDecoder
by introducingRawOutgoingMessage
andRawIncomingMessage
. This prevents the user from accidentally encoding anWebSocketMessage.open
, and it also makes it clear the user shouldn't try to decodeWebSocketMessage.open
, either. Additionally, this allows custom encoders to determine how the WebSocket should send the message: as a binary or as text.