Closed danforbes closed 1 year ago
Looks like other people are seeing this error when connecting to Polkadot nodes as well. I am only seeing the problem when I try to connect from this library (the connection works fine from a JavaScript WebSocket instance).
By using try_recv
, you will stop looping as soon as there is no message (which is likely right away). This means you will never actually get back an answer, and the connection will drop immediately. This could be part of the answer.
Is this on native or web btw?
...you will stop looping as soon as there is no message (which is likely right away).
Yes, I thought this may be the problem, but I didn't see any examples or anything that demonstrated other ways to explore the capabilities of this library.
I am running this natively.
I didn't see any examples
https://github.com/rerun-io/ewebsock/blob/main/example_app/src/app.rs
I'm trying to connect to the WebSocket server exposed by a Polkadot node. Here is my code:
The program terminates without exception, but does not print anything either. In the logs of the Polkadot node, I see the following message:
Is this due to user error?