Struct ws_tool::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }
Expand description
helper builder to construct websocket client
Implementations§
source§impl ClientBuilder
impl ClientBuilder
source§impl ClientBuilder
impl ClientBuilder
sourcepub fn protocols(self, protocols: Vec<String>) -> Self
pub fn protocols(self, protocols: Vec<String>) -> Self
set extension in handshake http header
NOTE it will clear protocols set by protocol
method
sourcepub fn extensions(self, extensions: Vec<String>) -> Self
pub fn extensions(self, extensions: Vec<String>) -> Self
set extension in handshake http header
NOTE it will clear protocols set by protocol
method