How to make this in vue?

You need to use for this? For example on page 10. On page blocks in which there is information(numbers, letters D). By clicking on these blocks opens a modal window which has a form. So.. one of the users clicks on one of the blocks, opens the window, enters data, presses the button and the fact that the field is entered in the table in the database. This changed data should appear in this block through 10 seconds without a page refresh. How to make these blocks were updated every 10 seconds? that is, it sent a request to the server to update the page. Something like that... How to do this in vue, the sockets don't want to.
P. S what is better vue.js or websocket?
June 8th 19 at 16:31
2 answers
June 8th 19 at 16:33
Rephrase your question, that you yourself make it clear:
It is better to use for repair: saw or hammer?
June 8th 19 at 16:35
First vue.js web sockets and different technologies. Absolutely.
Secondly, to solve the problem you need to use web sockets.

The answer to the question why lies in studying the mechanism works and a simple projection on this task.
you need to use web sockets.

Well, generally speaking, is not necessary, but desirable. Long polling is a crutch and a survey Aagami every N seconds. Although, of course, far more economical and easier to implement sockets. - glennie_Mer commented on June 8th 19 at 16:38

Find more questions by tags JavaScriptVue.js