Answer the question
In order to leave comments, you need to log in
Where to read about websockets as a replacement for ajax (as with support)?
I want to read about websockets, but in order not to waste time, I want to know:
Is it worth abandoning ajax in favor of websockets?
How are websockets with support?
Will it work on all devices?
The load on the server with websockets will not increase?
And is it hard to learn websockets?
How safe is it? And there are holes? And how to close them?
Answer the question
In order to leave comments, you need to log in
And if not difficult, then 1n example ... And in what combination does it work.
I'm interested myself now. Perhaps this link will suit you - learn.javascript.ru/websockets
WebSocket and AJAJ technologies are parallel, not alternative
1 Transmits only data
2 Generates headers for you
Therefore, if you need to transfer a File with a progress bar larger than a kilobyte, there may be no need to write a progress bar and resume on your own on the socket
At the same time, if there are a lot of requests to the server and they are critical in terms of latency, they are short. If people are waiting for them, for example, and it is not desirable to wait, collect in a heap and transfer in a portion, then Socket
Socket is used to implement Comit - when one message needs to be broadcast to many clients and vice versa
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question