Answer the question
In order to leave comments, you need to log in
What is better post/get+socket or pure socket?
Good day.
I am writing a single page application in nodejs using socket.io. And now the question arose - how best to build requests to / from the server / a. The first option is that the client sends a post / get request and receives a response to it, and if, for example, you need to notify other clients about changes, then sockets are used. The second option is to make all requests only using sockets. Which approach is better? Will pure sockets give a speed boost or no difference?
Answer the question
In order to leave comments, you need to log in
If the client sends post/get requests frequently (20 times per second), then on sockets.
Don't invent.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question