G
G
goodlike_by2021-01-15 17:25:51
Node.js
goodlike_by, 2021-01-15 17:25:51

Are sockets suitable for this task?

Good afternoon. It is necessary to implement:

1. The client part, the page to which n-users connect and on this page content is displayed in the required order or some actions take place (text appears, modal windows pop up, videos from YouTube are launched, etc.)

2. Admin part, client page control block

Will sockets be suitable for implementing this or look towards other technologies? With sockets, there is practically no experience, I only analyzed basic examples with chat, etc.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Sugonyaev, 2021-01-15
@goodlike_by

It's not clear from your description. WebSocket is needed when there is continuous communication between the client and the server, while the backend needs to trigger the client. For 90% of sites, this is not required, that is, the client usually triggers back. For example, the user clicks on a button, the request for data went to the back, the back returned the data, the client rendered the text. This is the end of the conversation, WebSocket is not needed.
Another example is with chat - you can get a message from another user just by keeping the page open without user action - WebSocket is needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question