Package

akka.http.scaladsl.model

ws

Permalink

package ws

Content Hierarchy
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait BinaryMessage extends javadsl.model.ws.BinaryMessage with Message

    Permalink

    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.

  2. final case class InvalidUpgradeResponse(response: HttpResponse, cause: String) extends WebSocketUpgradeResponse with Product with Serializable

    Permalink
  3. sealed trait Message extends javadsl.model.ws.Message

    Permalink

    The ADT for WebSocket messages.

    The ADT for WebSocket messages. A message can either be a binary or a text message.

  4. class PeerClosedConnectionException extends RuntimeException with javadsl.model.ws.PeerClosedConnectionException

    Permalink

    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.

  5. sealed trait TextMessage extends javadsl.model.ws.TextMessage with Message

    Permalink

    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.

  6. trait UpgradeToWebSocket extends HttpHeader with javadsl.model.ws.UpgradeToWebSocket

    Permalink

    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.

  7. final case class ValidUpgrade(response: HttpResponse, chosenSubprotocol: Option[String]) extends WebSocketUpgradeResponse with Product with Serializable

    Permalink
  8. final case class WebSocketRequest(uri: Uri, extraHeaders: Seq[HttpHeader] = Nil, subprotocol: Option[String] = None) extends Product with Serializable

    Permalink

    Represents a WebSocket request.

    Represents a WebSocket request.

    uri

    The target URI to connect to.

    extraHeaders

    Extra headers to add to the WebSocket request.

    subprotocol

    A WebSocket subprotocol if required.

  9. sealed trait WebSocketUpgradeResponse extends AnyRef

    Permalink

    Represents the response to a websocket upgrade request.

    Represents the response to a websocket upgrade request. Can either be ValidUpgrade or InvalidUpgradeResponse.

Value Members

  1. object BinaryMessage

    Permalink
  2. object TextMessage

    Permalink
  3. object WebSocketRequest extends Serializable

    Permalink

Ungrouped