diff --git a/sdk/lib/socks5-listener/src/android.rs b/sdk/lib/socks5-listener/src/android.rs
index 2763b3d79f..b4bf7c96e5 100644
--- a/sdk/lib/socks5-listener/src/android.rs
+++ b/sdk/lib/socks5-listener/src/android.rs
@@ -96,7 +96,7 @@ pub unsafe extern "C" fn Java_net_nymtech_nyms5_NymProxy_pingClient(
_env: JNIEnv,
_class: JClass,
) -> jboolean {
- // TODO: implement
- log::debug!("ping received");
+ log::debug!("pong");
+ crate::ping_client();
1
}
diff --git a/sdk/lib/socks5-listener/src/lib.rs b/sdk/lib/socks5-listener/src/lib.rs
index 676c8c6bee..b560da33f2 100644
--- a/sdk/lib/socks5-listener/src/lib.rs
+++ b/sdk/lib/socks5-listener/src/lib.rs
@@ -6,7 +6,7 @@ use crate::persistence::MobileClientStorage;
use ::safer_ffi::prelude::*;
use anyhow::{anyhow, Result};
use lazy_static::lazy_static;
-use log::{info, warn};
+use log::{debug, info, warn};
use nym_bin_common::logging::setup_logging;
use nym_client_core::init::GatewaySetup;
use nym_config_common::defaults::setup_env;
@@ -16,8 +16,10 @@ use std::marker::Send;
use std::path::PathBuf;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
+use std::time::Duration;
use tokio::runtime::Runtime;
use tokio::sync::{Mutex, Notify};
+use tokio::time::{sleep, Instant};
#[cfg(target_os = "android")]
pub mod android;
@@ -30,6 +32,7 @@ static SOCKS5_CONFIG_ID: &str = "mobile-socks5-test";
lazy_static! {
static ref CLIENT_SHUTDOWN_HANDLE: Mutex