SocketDecoder

final case class SocketDecoder(maxFramePayloadLength: Int, expectMaskedFrames: Boolean, allowMaskMismatch: Boolean, allowExtensions: Boolean, closeOnProtocolViolation: Boolean, withUTF8Validator: Boolean)

Frame decoder configuration

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def javaConfig[zhttp]: WebSocketDecoderConfig

When set to true, frames which are not masked properly according to the standard will still be accepted.

When set to true, frames which are not masked properly according to the standard will still be accepted.

Web socket servers must set this to true to reject incoming masked payload.

Web socket servers must set this to true to reject incoming masked payload.

Sets Maximum length of a frame's payload. Setting this to an appropriate value for you application helps check for denial of services attacks.

Sets Maximum length of a frame's payload. Setting this to an appropriate value for you application helps check for denial of services attacks.

Flag to not send close frame immediately on any protocol violation.ion.

Flag to not send close frame immediately on any protocol violation.ion.

Allows you to avoid adding of Utf8FrameValidator to the pipeline on the WebSocketServerProtocolHandler creation. This is useful (less overhead) when you use only BinaryWebSocketFrame within your web socket connection.

Allows you to avoid adding of Utf8FrameValidator to the pipeline on the WebSocketServerProtocolHandler creation. This is useful (less overhead) when you use only BinaryWebSocketFrame within your web socket connection.

Inherited methods

Inherited from:
Product