p

play.api.http

websocket

package websocket

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. case class BinaryMessage(data: ByteString) extends Message with Product with Serializable

    A binary message.

    A binary message.

    data

    The data of the binary message.

  2. case class CloseMessage(statusCode: Option[Int] = Some(CloseCodes.Regular), reason: String = "") extends Message with Product with Serializable

    A close message.

    A close message.

    statusCode

    The close status code.

    reason

    The reason it was closed.

  3. sealed trait Message extends AnyRef

    A WebSocket message.

    A WebSocket message.

    This is a high level API intended for common simple use cases. It allows handling and sending of full WebSocket messages, as well as close and ping/pong messages. It will buffer fragmented messages up until a limit, and does not allow streaming in fragments.

  4. case class PingMessage(data: ByteString) extends Message with Product with Serializable

    A ping message.

    A ping message.

    data

    The application data.

  5. case class PongMessage(data: ByteString) extends Message with Product with Serializable

    A pong message.

    A pong message.

    data

    The application data.

  6. case class TextMessage(data: String) extends Message with Product with Serializable

    A text message.

    A text message.

    data

    The data of the text message.

  7. case class WebSocketCloseException(message: CloseMessage) extends RuntimeException with Product with Serializable

    An exception that, if thrown by a WebSocket source, will cause the WebSocket to be closed with the given close message.

    An exception that, if thrown by a WebSocket source, will cause the WebSocket to be closed with the given close message. This is a convenience that allows the WebSocket to close with a particular close code without having to produce generic Messages.

Value Members

  1. object CloseCodes

    WebSocket close codes

  2. object CloseMessage extends Serializable