Use 127.0.0.1 instead of localhost in websocket example

This commit is contained in:
Héctor Ramón Jiménez 2023-04-11 07:48:30 +02:00
parent ae7e6b3d48
commit 5908205a62
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -22,7 +22,7 @@ pub fn connect() -> Subscription<Event> {
loop {
match &mut state {
State::Disconnected => {
const ECHO_SERVER: &str = "ws://localhost:3030";
const ECHO_SERVER: &str = "ws://127.0.0.1:3030";
match async_tungstenite::tokio::connect_async(
ECHO_SERVER,