Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question