Closed ta3pks closed 4 years ago
Relevant to https://github.com/actix/actix-web/issues/1006
Is it because the resource is /ws/
? I think I see it work if I use:
const ws = new WebSocket("ws://127.0.0.1:8080/ws/")
// wait a second to connect
ws.readyState === ws.OPEN
cargo run --bin websocket-server
fires the server up on port 8080 on firefoxnew WebSocket("ws://127.0.0.1:8080")
saysFirefox can’t establish a connection to the server at ws://127.0.0.1:8080/
however I see the logactix_web::middleware::logger] 127.0.0.1:58886 "GET / HTTP/1.1" 200 2394 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0" 0.000666
on the consoleI also tried using websocat the response is