From d0c7588619cc09148ec49688b6da1ed1ade1299f Mon Sep 17 00:00:00 2001 From: Isaac <134492608+isaacakakpo1@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:46:12 +0000 Subject: [PATCH] Add Method to get Socket State --- .../src/main/java/com/telnyx/webrtc/sdk/TelnyxClient.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/TelnyxClient.kt b/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/TelnyxClient.kt index b0f5bfc3..cfd40a26 100644 --- a/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/TelnyxClient.kt +++ b/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/TelnyxClient.kt @@ -1419,6 +1419,10 @@ class TelnyxClient( } + fun isSocketConnected(): Boolean { + return socket.isConnected + } + override fun onRingingReceived(jsonObject: JsonObject) { Timber.d( "[%s] :: onRingingReceived [%s]",