package
websocket
Type Members
-
case class
Frame(header: Header, payload: DataBlock) extends Product with Serializable
-
-
-
case class
Header(opcode: Byte, mask: Boolean) extends Product with Serializable
-
-
-
-
-
-
-
-
Value Members
-
object
Frame extends Serializable
-
-
-
-
-
Inherited from AnyRef
Inherited from Any
**This package is experimental and subject to breaking changes between versions**. We currently don't support the complete Websocket spec but there is enough support for basic servers
The Websocket protocol defines an asynchronous application protocol. Since unlike HTTP or other similar protocols there are no requests or responses, writing a Websocket server is slightly different from other service-protocol servers. In particular, you should use the WebsocketServer to start a server and the WebsocketServerHandler to define a connection handler.
The subprotocols package contains some basic sub-protocols, but these tend to be application specific so support is limited.
Websocket connection handlers are designed to behave like actors, and mixing in the
ProxyActor
trait can make Websocket connections behave like and interact with Akka actors.