After creating a connection in my WebSocketClient extending class with
super(URI.create("wss://"+WEBSITE+":443"));
and
super.connect()
I have the problem that the application doesn't terminate although I called the close() method or the closeConnection() method after a while. Maybe some Threads are still running? I know I could trigger System.exit(), but in my case I need to open and close connections over a long time again and again. It would be horrible if there will be more and more threads running in the background and slowing down the system.
Is this a bug? Or do Ihave to trigger some special method?
After creating a connection in my WebSocketClient extending class with
super(URI.create("wss://"+WEBSITE+":443"));
and
super.connect()
I have the problem that the application doesn't terminate although I called the close() method or the closeConnection() method after a while. Maybe some Threads are still running? I know I could trigger System.exit(), but in my case I need to open and close connections over a long time again and again. It would be horrible if there will be more and more threads running in the background and slowing down the system.
Is this a bug? Or do Ihave to trigger some special method?