• Niklas Adolfsson's avatar
    [ws client]: use `max_payload_size` in transport (#198) · 7dc9435e
    Niklas Adolfsson authored
    
    
    * 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]>
    7dc9435e