object WebSocket
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebSocket
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type HandlerProps = (ActorRef) => Props
A function that, given an actor to send upstream messages to, returns actor props to create an actor to handle the WebSocket
- trait MessageFlowTransformer[+In, -Out] extends AnyRef
Transforms WebSocket message flows into message flows of another type.
Transforms WebSocket message flows into message flows of another type.
The transformation may be more than just converting from one message to another, it may also produce messages, such as close messages with an appropriate error code if the message can't be consumed.
Value Members
- def accept[In, Out](f: (RequestHeader) => Flow[In, Out, _])(implicit transformer: MessageFlowTransformer[In, Out]): WebSocket
Accepts a WebSocket using the given flow.
- def acceptOrResult[In, Out](f: (RequestHeader) => Future[Either[Result, Flow[In, Out, _]]])(implicit transformer: MessageFlowTransformer[In, Out]): WebSocket
Creates an action that will either accept the websocket, using the given flow to handle the in and out stream, or return a result to reject the Websocket.
- def apply(f: (RequestHeader) => Future[Either[Result, Flow[, Message, _]]]): WebSocket
- object MessageFlowTransformer
Helper utilities to generate WebSocket results.