Skip to content

Commit

Permalink
Add Method to get Socket State
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacakakpo1 committed Aug 5, 2024
1 parent 658cecc commit d0c7588
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,10 @@ class TelnyxClient(

}

fun isSocketConnected(): Boolean {
return socket.isConnected
}

override fun onRingingReceived(jsonObject: JsonObject) {
Timber.d(
"[%s] :: onRingingReceived [%s]",
Expand Down

0 comments on commit d0c7588

Please sign in to comment.