diff --git a/src/main.rs b/src/main.rs index 038b6be..2d94afd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,10 @@ async fn handle_conn(peer: SocketAddr, stream: TcpStream) -> tokio_tungstenite:: &SocketMessage { op: HELLO, d: MessageData::HELLO { - heartbeat_interval: 1000, + heartbeat_interval: env::var("HEARTBEAT_INTERVAL"). + unwrap_or("1".to_string()) + .parse::() + .unwrap_or(1), nonce } }