Dagger do not send an event after some amount of time

I am builing an app using the Dagger Kotlin SDK (ver 0.0.2 jitpack).
However, I have an issue that Dagger do not send any event after around 10 secs.

My code is exactly same as the same code in the README.md in https://github.com/maticnetwork/dagger-kotlin-sdk except I used the latest:addr/+/tx/in event.

Certain amount of time (such as 10 secs), the dagger show an error, Connection lost. Reason: MqttException (0) - java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0.

However, after 5 secs, the logs like this and no more events are coming even though the connect is true.

Connection lost. Reason: MqttException (0) - java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0.
Connected: true, Subscriptions: [latest:addr/+/tx/in]
Connected: true, Subscriptions: [latest:addr/+/tx/in]
Connected: true, Subscriptions: [latest:addr/+/tx/in]

Do you have any idea how to fix this issue?

Hey @kdnmih as discussed with you on Telegram, if you clone the Github repo on to your local machine and try running the sample code in the main file with latest:addr/+/tx/in as the topic, it works as expected. Maybe something is going wrong with your Spring application’s lifecycle.