Packages

  • package root
    Definition Classes
    root
  • package play

    Play framework.

    Play framework.

    Play

    http://www.playframework.com

    Definition Classes
    root
  • package api

    Contains the public API for Scala developers.

    Contains the public API for Scala developers.

    Read configuration
    val poolSize = configuration.getInt("engine.pool.size")
    Use the logger
    Logger.info("Hello!")
    Define a Plugin
    class MyPlugin(app: Application) extends Plugin
    Create adhoc applications (for testing)
    val application = Application(new File("."), this.getClass.getClassloader, None, Play.Mode.DEV)
    Definition Classes
    play
  • package http

    Contains standard HTTP constants.

    Contains standard HTTP constants. For example:

    val text = ContentTypes.TEXT
    val ok = Status.OK
    val accept = HeaderNames.ACCEPT
    Definition Classes
    api
  • package websocket
    Definition Classes
    http
  • BinaryMessage
  • CloseCodes
  • CloseMessage
  • Message
  • PingMessage
  • PongMessage
  • TextMessage
  • WebSocketCloseException
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

Ungrouped