Use 127.0.0.1 instead of localhost in websocket example
This commit is contained in:
parent
ae7e6b3d48
commit
5908205a62
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ pub fn connect() -> Subscription<Event> {
|
||||||
loop {
|
loop {
|
||||||
match &mut state {
|
match &mut state {
|
||||||
State::Disconnected => {
|
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(
|
match async_tungstenite::tokio::connect_async(
|
||||||
ECHO_SERVER,
|
ECHO_SERVER,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue