Spark ver. 2.9.2 reconnects every minute. I reinstalled the prog, cleaned the cache. It did not help.
What server are you using? If it is Openfire, maybe you have a very short idle time set in its settings. You can also check logs for clues.
There is a bunch of files, look through all of them and select events that correlate with the time of your issue.
I have deleted your message with a log as it has your name and domain in there. Maybe you don’t want it to be available on the internet. I saw a mention of stream management in a few errors. So you can try disabling in on a server. Which you haven’t provided info for. Suppose this is Openfire and something about 4.3.2 or newer.
In Admin Console go to System Properties menu, find or create (if it is not there) a system property with a name stream.management.active and set its value to false. Restart the server and then see if disconnects still happen.