You can be logged out because of the following reasons:

  1. If the internet connection is dropping packets continuously

  2. Application is disconnected from the network

  3. System goes to sleep and disconnects network

  4. If websocket fails to keepalive because of network drops or latency