Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross luaguage #268

Open
tuoeg opened this issue Apr 19, 2022 · 3 comments
Open

Cross luaguage #268

tuoeg opened this issue Apr 19, 2022 · 3 comments

Comments

@tuoeg
Copy link

tuoeg commented Apr 19, 2022

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" })))'

@tuoeg tuoeg changed the title Cross platform Cross luaguage Apr 19, 2022
@vi
Copy link
Member

vi commented Apr 19, 2022

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?

@tuoeg
Copy link
Author

tuoeg commented Apr 20, 2022

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

@vi
Copy link
Member

vi commented Apr 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants