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 org.apache.pekko.stream.scaladsl.BidiFlow<FrameEventOrError,FrameHandler.Output,java.lang.Object,FrameStart,org.apache.pekko.NotUsed> |
frameHandling(boolean serverSide,
scala.concurrent.duration.FiniteDuration closeTimeout,
org.apache.pekko.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 org.apache.pekko.stream.scaladsl.BidiFlow<org.apache.pekko.util.ByteString,FrameEvent,FrameEvent,org.apache.pekko.util.ByteString,org.apache.pekko.NotUsed> |
framing()
The lowest layer that implements the binary protocol
|
static org.apache.pekko.stream.scaladsl.BidiFlow<FrameEvent,FrameEventOrError,FrameEvent,FrameEvent,org.apache.pekko.NotUsed> |
masking(boolean serverSide,
scala.Function0<java.util.Random> maskingRandomFactory)
The layer that handles masking using the rules defined in the specification
|
static org.apache.pekko.stream.scaladsl.BidiFlow<FrameHandler.Output,Message,Message,java.lang.Object,org.apache.pekko.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 org.apache.pekko.stream.scaladsl.BidiFlow<FrameHandler.Output,FrameHandler.Output,java.lang.Object,java.lang.Object,org.apache.pekko.NotUsed> |
periodicKeepAlive(WebSocketSettings settings)
The layer that transparently injects (if enabled) keepAlive Ping or Pong messages when connection is idle
|
static org.apache.pekko.stream.scaladsl.BidiFlow<FrameEvent,Message,Message,FrameEvent,org.apache.pekko.NotUsed> |
stack(boolean serverSide,
WebSocketSettings websocketSettings,
scala.concurrent.duration.FiniteDuration closeTimeout,
org.apache.pekko.event.LoggingAdapter log)
A stack of all the higher WS layers between raw frames and the user API.
|
public static org.apache.pekko.stream.scaladsl.BidiFlow<FrameEvent,Message,Message,FrameEvent,org.apache.pekko.NotUsed> stack(boolean serverSide, WebSocketSettings websocketSettings, scala.concurrent.duration.FiniteDuration closeTimeout, org.apache.pekko.event.LoggingAdapter log)
serverSide
- (undocumented)websocketSettings
- (undocumented)closeTimeout
- (undocumented)log
- (undocumented)public static org.apache.pekko.stream.scaladsl.BidiFlow<org.apache.pekko.util.ByteString,FrameEvent,FrameEvent,org.apache.pekko.util.ByteString,org.apache.pekko.NotUsed> framing()
public static org.apache.pekko.stream.scaladsl.BidiFlow<FrameEvent,FrameEventOrError,FrameEvent,FrameEvent,org.apache.pekko.NotUsed> masking(boolean serverSide, scala.Function0<java.util.Random> maskingRandomFactory)
public static org.apache.pekko.stream.scaladsl.BidiFlow<FrameHandler.Output,FrameHandler.Output,java.lang.Object,java.lang.Object,org.apache.pekko.NotUsed> periodicKeepAlive(WebSocketSettings settings)
public static org.apache.pekko.stream.scaladsl.BidiFlow<FrameEventOrError,FrameHandler.Output,java.lang.Object,FrameStart,org.apache.pekko.NotUsed> frameHandling(boolean serverSide, scala.concurrent.duration.FiniteDuration closeTimeout, org.apache.pekko.event.LoggingAdapter log)
serverSide
- (undocumented)closeTimeout
- (undocumented)log
- (undocumented)public static org.apache.pekko.stream.scaladsl.BidiFlow<FrameHandler.Output,Message,Message,java.lang.Object,org.apache.pekko.NotUsed> messageAPI(boolean serverSide, scala.concurrent.duration.FiniteDuration closeTimeout)
serverSide
- (undocumented)closeTimeout
- (undocumented)