-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
About the use of tcp_echo_client.c and tcp_echo_server.p #23468
Comments
I'll try to answer this question specifically: When you use On one of the websocket is you web application, on the other end (i.e. on your web server) you need run a proxying server. The source code for this is here: https://github.com/emscripten-core/emscripten/tree/main/tools/websocket_to_posix_proxy See https://emscripten.org/docs/porting/networking.html#full-posix-sockets-over-websocket-proxy-server |
Thank you for your reply. I found the previous problem after reading this code. |
Hello!
When I run tcp_echo_client.c, I cannot connect to the server run by tcp_echo_server.py. The server can print the connection request, but
emscripten_websocket_get_ready_state
always returns 0, and the connection cannot be established correctly.Does it mean that as a bridge, it can only connect to the websocket server, but not to TCP? Then why does your sample code have both websocket connection and connect(socket)? If you see this, please help me solve my doubts. Thank you.
I used cmake to compile, here is my CMake
The text was updated successfully, but these errors were encountered: