How do I keep the web socket connection active even though it is in the background of the application?
Even though I am outside the application, I still want to receive messages sent by the web socket and update my database based on the messages received.
Initially I used work manager, is this a good enough solution?
2