websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust

Home Page:http://websockets-rs.github.io/rust-websocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross luaguage

tuoeg opened this issue · comments

commented

websocket-client in rust,but websocket-server use C++,but client can't connect to server

error:thread 'main' panicked at 'called Result::unwrap() on an Err value: Other(HttpError(Io(Custom { kind: UnexpectedEof, error: "end of stream before headers finished" })))'

Do you mean using WebSocket client from this library you cannot connect to other WebSocket server (not provided by this library)?

Can you connect to that WebSocket server from a browser?

Is there traffic dump where request and response are visible?

Have you tried the recommended alternative Rust WebSocket library tungstenite?

commented

browser can't connect to websocket server(provided by this library),but browser can connect that server(code by C++)

Browser should be able to connect to rust-websocket-based server if everything is implemented properly.