If you want to know if the client is connected to the server before calling setValue() , you can attach a listener to . info/connected .
If you want to know if the client is connected to the server before calling setValue() , you can attach a listener to . info/connected .