Do you have an onInstant survey first?

I am currently a firebase client and am facing this rather poor performance problem in firebase: Firebase boot performance , where the initial handshake with websocket delays loading the entire application for a second or more.

I am wondering if this problem was resolved? The idea is that you first do the traditional xhr and then swap the websockets when you establish the connection.

+4
source share
2 answers

What GoInstant does. It starts with an XHR connection, then tries to upgrade to websocket, if available.

+5
source

Firebase websocket. , , . , - , . XHR- . -, , , , .

, , Firebase , Firebase.INTERNAL.forceLongPolling();

, , ( firebase.com, ), , , , , .

+5

Source: https://habr.com/ru/post/1540295/


All Articles