I fixed this problem for several weeks and could reproduce it sequentially. Sometimes I get a WebSocket is closed warning, another time it is an actual error:
Connection to WebSocket with 'wss: //s-usc1c-nss-214.firebaseio.com/.ws? v = 5 & ns = foo 'failed: WebSocket session timeout
You had a long chain of email with support. They stated that “there should not be so much time to establish a connection just like your application”, and that “it looks like it is outside the Google network, and without any additional data it’s just, maybe just a normal Internet compound".
But I agree with @Xi Xiao above that "freezing for 30 seconds is not a suitable solution." I created a GitHub problem by describing the problem in detail and proposing a couple of solutions.
source share