From eb3f3afa60439efc4857f2410e81fc46569834e8 Mon Sep 17 00:00:00 2001 From: eskimo Date: Mon, 28 Oct 2024 15:01:11 -0400 Subject: [PATCH] send connecting on android --- .../java/software/eskimo/capacitor/sockets/SocketHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/java/software/eskimo/capacitor/sockets/SocketHandler.java b/android/src/main/java/software/eskimo/capacitor/sockets/SocketHandler.java index b9c113d..9ec4344 100644 --- a/android/src/main/java/software/eskimo/capacitor/sockets/SocketHandler.java +++ b/android/src/main/java/software/eskimo/capacitor/sockets/SocketHandler.java @@ -32,6 +32,8 @@ public class SocketHandler { public void connect(final String host, final int port, final boolean useTLS, final boolean acceptInvalidCertificates) { new Thread(() -> { try { + delegate.onStateChanged(id, "connecting"); + if (useTLS) { SSLContext sslContext = SSLContext.getInstance("TLS"); if (acceptInvalidCertificates) {