Struct actix_web::ws::Client [] [src]

pub struct Client { /* fields omitted */ }

WebSocket client

Example of WebSocket client usage is available in websocket example

Methods

impl Client
[src]

[src]

Create new websocket connection

[src]

Create new websocket connection with custom ClientConnector

[src]

Set supported websocket protocols

[src]

Set cookie for handshake request

[src]

Set request Origin

[src]

Set max frame size

By default max size is set to 64kb

[src]

Set write buffer capacity

Default buffer capacity is 32kb

[src]

Set request header

[src]

Set websocket handshake timeout

Handshake timeout is a total time for successful handshake. Default value is 5 seconds.

[src]

Connect to websocket server and do ws handshake

Trait Implementations

Auto Trait Implementations

impl !Send for Client

impl !Sync for Client