dart-archive / vm_service_client

A Darty client for the VM service protocol
https://pub.dev/packages/vm_service_client
BSD 3-Clause "New" or "Revised" License
12 stars 19 forks source link

Add support for controlling WebSocket compression #43

Open cbracken opened 5 years ago

cbracken commented 5 years ago

Since the VM service is most frequently connected to on localhost, consider, in order of priority:

  1. Offer the option to specify WebSocket compression enabled/disabled (or pass a dart:io CompressionOptions object if we think finer-grained control is justified)
  2. Disable WebSocket compression by default

As one datapoint, see dart-lang/coverage#186, where a developer is measuring ~15% of coverage collection runtime spent doing compression.