Unverified Commit 7dc9435e authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

[ws client]: use `max_payload_size` in transport (#198)



* fix examples

* [ws client]: transport use `max_payload_size`

* fix nits

* fix more nits

* Update ws-client/src/client.rs

* fix doc tests

* [ws client]: all transport config configurable

* Update ws-client/src/client.rs

Co-authored-by: default avatarDavid <[email protected]>

* Update ws-client/src/manager.rs

Co-authored-by: default avatarDavid <[email protected]>

* address grumbles

* grumbles: WsDnsError -> WsHandshakeError

* grumbles: remove needless clone

* fix lint: remove explicit lifetime

* fix nits: channel capacity + docs

* clippy nits

* clippy nits

* fix grumbles: channel capacity 256

As Maciej pointed out the capacity is the number of messages (not bytes) and each message is 96 bytes.
Thus, 256 * 96 = ~24kB which is reasonable default value.

* Update ws-client/src/client.rs

Co-authored-by: default avatarDavid <[email protected]>

* grumbles: docs

Co-authored-by: default avatarDavid <[email protected]>
parent 15071264
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment