How to check network coneection

You have to check wether the backend functions you need are available by polling the backend.