I have a Chat app and a backend nodejs server, what is the best way to initiate the socket connection and listen for new messages in background even when the app is not runn