trait MessageFlowTransformer[+In, -Out] extends AnyRef

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.

Self Type
MessageFlowTransformer[In, Out]
Source
WebSocket.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MessageFlowTransformer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def transform(flow: Flow[In, Out, _]): Flow[, Message, _]

    Transform the flow of In/Out messages into a flow of WebSocket messages.

Concrete Value Members

  1. def contramap[NewOut](f: (NewOut) => Out): MessageFlowTransformer[In, NewOut]

    Contramap the out type of this transformer.

  2. def map[NewIn, NewOut](f: (In) => NewIn, g: (NewOut) => Out): MessageFlowTransformer[NewIn, NewOut]

    Map the in type and contramap the out type of this transformer.

  3. def map[NewIn](f: (In) => NewIn): MessageFlowTransformer[NewIn, Out]

    Map the in type of this transformer.