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

Unable to connect to WS server #311

Open
cxnky opened this issue Feb 8, 2020 · 1 comment
Open

Unable to connect to WS server #311

cxnky opened this issue Feb 8, 2020 · 1 comment

Comments

@cxnky
Copy link

cxnky commented Feb 8, 2020

I copied the client example, and changed the URL to ws://mydomain.com:port (obviously valid values), but it can't send a message because it just throws the error:

Error: WS Error <Io(Os { code: 10057, kind: NotConnected, message: "A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied." })>

@ajaydevarakonda7
Copy link

ajaydevarakonda7 commented Mar 4, 2020

Hi @cxnky,
Tried to use this https://github.com/housleyjk/ws-rs/blob/master/examples/client.rs example with ws://echo.websocket.org and it ran just fine.

May be you could try if the websocket is truly working in browser or any other language, just put it in a small connecting example?

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