public class WebSocket
extends java.lang.Object
Defines components of the websocket stack.
Modifier and Type | Class and Description |
---|---|
static class |
WebSocket.Tick$ |
Constructor and Description |
---|
WebSocket() |
Modifier and Type | Method and Description |
---|---|
static akka.stream.scaladsl.BidiFlow<FrameEventOrError,FrameHandler.Output,java.lang.Object,FrameStart,akka.NotUsed> |
frameHandling(boolean serverSide,
scala.concurrent.duration.FiniteDuration closeTimeout,
akka.event.LoggingAdapter log)
The layer that implements all low-level frame handling, like handling control frames, collecting messages
from frames, decoding text messages, close handling, etc.
|
static akka.stream.scaladsl.BidiFlow<akka.util.ByteString,FrameEvent,FrameEvent,akka.util.ByteString,akka.NotUsed> |
framing()
The lowest layer that implements the binary protocol
|
static akka.stream.scaladsl.BidiFlow<FrameEvent,FrameEventOrError,FrameEvent,FrameEvent,akka.NotUsed> |
masking(boolean serverSide,
scala.Function0<java.util.Random> maskingRandomFactory)
The layer that handles masking using the rules defined in the specification
|
static akka.stream.scaladsl.BidiFlow<FrameHandler.Output,Message,Message,java.lang.Object,akka.NotUsed> |
messageAPI(boolean serverSide,
scala.concurrent.duration.FiniteDuration closeTimeout)
The layer that provides the high-level user facing API on top of frame handling.
|
static akka.stream.scaladsl.BidiFlow<FrameEvent,Message,Message,FrameEvent,akka.NotUsed> |
stack(boolean serverSide,
scala.Function0<java.util.Random> maskingRandomFactory,
scala.concurrent.duration.FiniteDuration closeTimeout,
akka.event.LoggingAdapter log)
A stack of all the higher WS layers between raw frames and the user API.
|
public static akka.stream.scaladsl.BidiFlow<FrameEvent,Message,Message,FrameEvent,akka.NotUsed> stack(boolean serverSide, scala.Function0<java.util.Random> maskingRandomFactory, scala.concurrent.duration.FiniteDuration closeTimeout, akka.event.LoggingAdapter log)
serverSide
- (undocumented)maskingRandomFactory
- (undocumented)closeTimeout
- (undocumented)log
- (undocumented)public static akka.stream.scaladsl.BidiFlow<akka.util.ByteString,FrameEvent,FrameEvent,akka.util.ByteString,akka.NotUsed> framing()
public static akka.stream.scaladsl.BidiFlow<FrameEvent,FrameEventOrError,FrameEvent,FrameEvent,akka.NotUsed> masking(boolean serverSide, scala.Function0<java.util.Random> maskingRandomFactory)
public static akka.stream.scaladsl.BidiFlow<FrameEventOrError,FrameHandler.Output,java.lang.Object,FrameStart,akka.NotUsed> frameHandling(boolean serverSide, scala.concurrent.duration.FiniteDuration closeTimeout, akka.event.LoggingAdapter log)
serverSide
- (undocumented)closeTimeout
- (undocumented)log
- (undocumented)public static akka.stream.scaladsl.BidiFlow<FrameHandler.Output,Message,Message,java.lang.Object,akka.NotUsed> messageAPI(boolean serverSide, scala.concurrent.duration.FiniteDuration closeTimeout)
serverSide
- (undocumented)closeTimeout
- (undocumented)