I am taking over a project for a client and am just getting familiar with BalenaOS and the customer’s application. I do have some embedded Linux experience and I feel pretty comfortable with the HW, OS, and Application. However, I am seeing an issue that I think the community will be able to help me solve faster than I can by myself.
We are currently running a multi container node.js UI application. The UI front end container is communicating though a websocket to the backend. When the device is connected to the internet, the application seems to run fine. When the device is disconnected from the internet, the websocket client detects a ping time out and attempts to reconnect to the sever in the backend container every second. This reconnection does not happen until the internet is reconnected. When the internet is reconnected, the issue resolves itself almost immediately.
I assume this TCP connection between containers should not be affected if the device is disconnected from the internet. Am I wrong here? Can apps run in BalenaOS without an internet connection?