Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

goInstant polling first?

I'm currently a firebase customer and is facing this pretty bad performance problem in firebase: Firebase load performance where the initial websocket handshake delays the loading of the entire app by a second or more.

I'm curious if goinstant has this problem solved? The idea is that you make a traditional xhr first and then swap into websockets as the connection is established.

like image 477
Harry Avatar asked Dec 26 '22 09:12

Harry


1 Answers

That's exactly what GoInstant does. It starts with an XHR connection, then attempts to upgrade to websocket if available.

like image 97
jbowes Avatar answered Jan 06 '23 02:01

jbowes