We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbdbc62 commit 7fc8b48Copy full SHA for 7fc8b48
src/client/builder.rs
@@ -392,10 +392,10 @@ impl<'u> ClientBuilder<'u> {
392
pub fn connect(
393
&mut self,
394
ssl_config: Option<SslConnector>,
395
- ) -> WebSocketResult<Client<Box<NetworkStream>>> {
+ ) -> WebSocketResult<Client<Box<NetworkStream + Send>>> {
396
let tcp_stream = try!(self.establish_tcp(None));
397
398
- let boxed_stream: Box<NetworkStream> = if
+ let boxed_stream: Box<NetworkStream + Send> = if
399
self.url.scheme() == "wss" {
400
Box::new(try!(self.wrap_ssl(tcp_stream, ssl_config)))
401
} else {
0 commit comments