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

Failed to open a websocket server path #154

Closed
woshidama323 opened this issue Nov 28, 2019 · 2 comments
Closed

Failed to open a websocket server path #154

woshidama323 opened this issue Nov 28, 2019 · 2 comments

Comments

@woshidama323
Copy link

woshidama323 commented Nov 28, 2019

Env ubuntu18.4
Julia 1.2

Question:
When using websocket like this below
I got an error

> WebSockets.open((-)->nothing,"ws://localhost:9050/ws")
> HTTP.Messages.Response:
> """
> HTTP/1.1 404 Not Found
> Content-Type: text/plain; charset=utf-8
> X-Content-Type-Options: nosniff
> Date: Thu, 28 Nov 2019 08:01:34 GMT
> Content-Length: 19

But the websocket server is ok and I can access this server by using command ws
ws "ws://localhost:9050/ws"

So, what's the reason ?

@hustf
Copy link
Collaborator

hustf commented Nov 28, 2019

I would have to look up the 404 message. Perhaps you actually do connect. But since you immediately exit and close, which http response would you actually expect?

@woshidama323
Copy link
Author

@hustf I need to keep the ws connection alive always and can read the message from the ws server continually. You mean client had already connected to the ws server ? I will test it again

@hustf hustf closed this as completed Dec 18, 2020
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