Class WebSocketSettings

    • Constructor Detail

      • WebSocketSettings

        public WebSocketSettings()
    • Method Detail

      • getPeriodicKeepAliveData

        public final java.util.function.Supplier<akka.util.ByteString> getPeriodicKeepAliveData()
        Description copied from interface: WebSocketSettings
        The provided supplier will be invoked for each new keep-alive frame that is sent. The ByteString will be included in the Ping or Pong frame sent as heartbeat, so keep in mind to keep it relatively small, in order not to make the frames too bloated.
        Specified by:
        getPeriodicKeepAliveData in interface WebSocketSettings
        Returns:
        (undocumented)
      • periodicKeepAliveData

        public abstract scala.Function0<akka.util.ByteString> periodicKeepAliveData()
        The provided function will be invoked for each new keep-alive frame that is sent. The ByteString will be included in the Ping or Pong frame sent as heartbeat, so keep in mind to keep it relatively small, in order not to make the frames too bloated.
        Returns:
        (undocumented)
      • randomFactory

        public abstract scala.Function0<java.util.Random> randomFactory()
      • withPeriodicKeepAliveData

        public WebSocketSettings withPeriodicKeepAliveData​(scala.Function0<akka.util.ByteString> newValue)