You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My backend has HTTP2, HTTP3, and therefore keep alive, enabled. Browsers making API requests complete the request 100 to 150ms faster than my React Native app, and I believe that's because the app establishes a new TLS connection for every request, unlike in the browser where it seems to be reuisng an existing connection.
Is there any way to make Axios re-use connections in React Native?
I've seen an example where that can be done inside node.js, but not RN.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
My backend has HTTP2, HTTP3, and therefore keep alive, enabled. Browsers making API requests complete the request 100 to 150ms faster than my React Native app, and I believe that's because the app establishes a new TLS connection for every request, unlike in the browser where it seems to be reuisng an existing connection.
Is there any way to make Axios re-use connections in React Native?
I've seen an example where that can be done inside node.js, but not RN.
Beta Was this translation helpful? Give feedback.
All reactions