How to test the "echo" examples? #197
-
Take https://github.com/Totodore/socketioxide/tree/main/examples/axum-echo for example, when I cd into this directory and run with "cargo run". Other use browsers (I tested Firefox and Chrome) or directly use curl in the terminal, it only returns "Hello, World!" and no more. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@raindust |
Beta Was this translation helpful? Give feedback.
@raindust
Hi! The 'Hello World' line prints on a Get request from browser or curl.
The socket never connects, probably because you are not using a socket io client.
You can get the browser client here: https://socket.io/docs/v4/client-api/