1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 09:12:57 +01:00
actix-extras/actix-ws/CHANGELOG.md
asonix b0d2947a4a
Add better support for receiving larger payloads (#430)
* Add better support for receiving larger payloads

This change enables the maximum frame size to be configured when receiving websocket frames. It also
adds a new stream time that aggregates continuation frames together into their proper collected
representation. It provides no mechanism yet for sending continuations.

* actix-ws: Add continuation & size config to changelog

* actix-ws: Add Debug, Eq to AggregatedMessage

* actix-ws: Add a configurable maximum size to aggregated continuations

* refactor: move aggregate types to own module

* test: fix chat example

* docs: update changelog

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-07-20 06:09:30 +00:00

631 B

Changelog

Unreleased

  • Add AggregatedMessage[Stream] types.
  • Add MessageStream::max_frame_size() setter method.
  • Add Session::continuation() method.
  • The Session::text() method now receives an impl Into<ByteString>, making broadcasting text messages more efficient.
  • Remove type parameters from Session::{text, binary}() methods, replacing with equivalent impl Trait parameters.
  • Reduce memory usage by take-ing (rather than split-ing) the encoded buffer when yielding bytes in the response stream.

0.2.5