dart:io
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
- clientMaxWindowBits → int
final
- Determines the max window bits for the client.
- clientNoContextTakeover → bool
final
- Controls whether the client will reuse its compression instances.
- enabled → bool
final
- Enables or disables WebSocket compression.
- serverMaxWindowBits → int
final
- Determines the max window bits for the server.
- serverNoContextTakeover → bool
final
- Controls whether the server will reuse its compression instances.
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- runtimeType → Type
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.
- DEFAULT → const CompressionOptions
-
compressionDefault
- OFF → const CompressionOptions
-
compressionOff