Represents a WebSocket binary message.
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.
The ADT for WebSocket messages.
The ADT for WebSocket messages. A message can either be a binary or a text message.
A PeerClosedConnectionException will be reported to the WebSocket handler if the peer has closed the connection.
A PeerClosedConnectionException will be reported to the WebSocket handler if the peer has closed the connection.
closeCode
and closeReason
contain close messages as reported by the peer.
Represents a WebSocket text 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.
A custom header that will be added to an WebSocket upgrade HttpRequest that enables a request handler to upgrade this connection to a WebSocket connection and registers a WebSocket handler.
Represents a WebSocket request.
Represents a WebSocket request.
The target URI to connect to.
Extra headers to add to the WebSocket request.
A WebSocket subprotocol if required.
Represents the response to a websocket upgrade request.
Represents the response to a websocket upgrade request. Can either be ValidUpgrade or InvalidUpgradeResponse.