S
S
saskee2017-07-02 17:57:09
PHP
saskee, 2017-07-02 17:57:09

Is it normal to have a socket connection on every page?

Connection to node.js via socket.io is planned to be made in the header, therefore, on each page in order to implement live notifications like in VK. Is it normal that the user will connect to the server every time on a new page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
napa3um, 2017-07-02
@saskee

Fine. Under real load, and it will be seen if the load is large, then it will be possible to optimize.

B
Boris Korobkov, 2017-07-02
@BorisKorobkov

Fine.
The load on both the client and the server is no more than uploading some kind of static image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question