Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:io
  3. CompressionOptions class
CompressionOptions
description

CompressionOptions class

Options controlling compression in aWebSocket.

ACompressionOptions instance can be passed toWebSocket.connect, orused in other similar places whereWebSocket compression is configured.

In most cases the defaultcompressionDefault is sufficient, but in somesituations, it might be desirable to use different compression parameters,for example to preserve memory on small devices.

Constructors

CompressionOptions({boolclientNoContextTakeover =false,boolserverNoContextTakeover =false,int?clientMaxWindowBits,int?serverMaxWindowBits,boolenabled =true})
const

Properties

clientMaxWindowBitsint?
The maximal window size bit count requested by the client.
final
clientNoContextTakeoverbool
Whether the client will reuse its compression instances.
final
enabledbool
Whether WebSocket compression is enabled.
final
hashCodeint
The hash code for this object.
no setterinherited
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
serverMaxWindowBitsint?
The maximal window size bit count requested by the server.
final
serverNoContextTakeoverbool
Whether the server will reuse its compression instances.
final

Methods

noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()String
A string representation of this object.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited

Constants

compressionDefault→ constCompressionOptions
DefaultWebSocket compression configuration.
compressionOff→ constCompressionOptions
No-compression configuration.
  1. Dart
  2. dart:io
  3. CompressionOptions class
dart:io library

[8]ページ先頭

©2009-2025 Movatter.jp