Using IP for localhost

This commit is contained in:
Dave Hrycyszyn
2024-06-05 16:18:47 +01:00
parent e8ce68b9bf
commit 4eac2ccf19

View File

@@ -12,8 +12,8 @@ use websockets::WebSocket;
/// Starts a websocket and periodically sends a BFT-CRDT message to the websocket server
pub(crate) async fn start() -> Result<(), websockets::WebSocketError> {
println!("connecting to websocket at ws://localhost:8080/");
let mut ws = WebSocket::connect("ws://localhost:8080/").await?;
println!("connecting to websocket at ws://127.0.0.1:8080/");
let mut ws = WebSocket::connect("ws://127.0.0.1:8080/").await?;
// generate a placeholder transaction
let json = generate_transaction().unwrap();