- Ably FAQs
- Realtime API and client libraries
- Common issues
- 
        
        
      
        Account billing and packages
- 
        
        
      
        General
- 
        
        
      
        Realtime API and client libraries
- 
        
        
      
        Troubleshooting
- 
        
        
      
        Channels
- 
        
        
      
        REST API and client libraries
- 
        
        
      
        Ably error codes
- 
        
        
      
        Account and app setup and configuration
- 
        
        
      
        Ably architecture, transports, and security
- 
        
        
      
        Performance and Redundancy
- 
        
        
      
        Push Notifications
- 
        
        
      
        Integrations
- 
        
        
      
        Migrating to Ably from an existing service
Using ably-js-react native, connection attempts or rest requests appear to timeout immediately
For example, if you init a realtime connection and it tries to connect and immediately goes from the `connecting` state to the `disconnected` state, with a reason of `Connection to server temporarily unavailable`. This can happen if the device time is set wrongly, in particular if using an emulator or if in debug mode, see https://stackoverflow.com/questions/51163349/javascript-settimeout-immediately-runs-in-react-native , which can break timeouts. You can diagnose this by calling, say, `setTimeout(() => console.log("done"), 10000)` yourself; this should print "done" after 10 seconds, if it prints it immediately, you have this issue.
