Packages

o

play.core.server.common

WebSocketFlowHandler

object WebSocketFlowHandler

Source
WebSocketFlowHandler.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebSocketFlowHandler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class RawMessage(messageType: Type, data: ByteString, isFinal: Boolean, directAnswer: Boolean = false) extends Product with Serializable

Value Members

  1. def parseCloseMessage(data: ByteString): CloseMessage
  2. def webSocketProtocol(bufferLimit: Int, wsKeepAliveMode: String, wsKeepAliveMaxIdle: Duration): BidiFlow[RawMessage, Message, Message, Message, NotUsed]

    Implements the WebSocket protocol, including correctly handling the closing of the WebSocket, as well as other control frames like ping/pong.

  3. object MessageType extends Enumeration

Deprecated Value Members

  1. def webSocketProtocol(bufferLimit: Int): BidiFlow[RawMessage, Message, Message, Message, NotUsed]

    Implements the WebSocket protocol, including correctly handling the closing of the WebSocket, as well as other control frames like ping/pong.

    Implements the WebSocket protocol, including correctly handling the closing of the WebSocket, as well as other control frames like ping/pong.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.19) Please specify the keep-alive mode (ping or pong) and max-idle time