K
K
Kam Minskii2019-12-02 23:37:49
JavaScript
Kam Minskii, 2019-12-02 23:37:49

What is the best way to connect socket in react native app?

Hello. Got a question. What is the best way to connect sockets?
Is it better to connect in the index file of the application or is it better to connect in the file where the data exchange will take place? And if so, then when you exit this screen, do you need to disconnect the socket or is it not necessary?
I want to know how to do it the right way. If you suggest your options, I will be grateful.
Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question