W3cubDocs

/Dart 2

CompressionOptions class

The CompressionOptions class allows you to control the options of WebSocket compression.

Constructors

CompressionOptions({bool clientNoContextTakeover: false, bool serverNoContextTakeover: false, int clientMaxWindowBits, int serverMaxWindowBits, bool enabled: true })
const

Properties

clientMaxWindowBitsint
final
Determines the max window bits for the client.
clientNoContextTakeoverbool
final
Controls whether the client will reuse its compression instances.
enabledbool
final
Enables or disables WebSocket compression.
serverMaxWindowBitsint
final
Determines the max window bits for the server.
serverNoContextTakeoverbool
final
Controls whether the server will reuse its compression instances.
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Constants

compressionDefault → const CompressionOptions
Default WebSocket Compression options. [...]
compressionOff → const CompressionOptions
Disables WebSocket Compression.
const CompressionOptions(enabled: false)
DEFAULT → const CompressionOptions
@Deprecated("Use compressionDefault instead")
compressionDefault
OFF → const CompressionOptions
@Deprecated("Use compressionOff instead")
compressionOff

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/CompressionOptions-class.html