D
D
Dmitry Volkhontsev2016-08-08 16:09:11
Node.js
Dmitry Volkhontsev, 2016-08-08 16:09:11

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

1 answer(s)
A
Alexey Yarkov, 2016-08-08
@DarkDD

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 question

Ask a Question

731 491 924 answers to any question