H
H
hadra2014-04-07 17:28:12
PHP
hadra, 2014-04-07 17:28:12

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

4 answer(s)
A
Alexey, 2014-04-07
@hadra

WebSockets is not a replacement for AJAX.

H
hadra, 2014-04-07
@hadra

And if not difficult, then 1n example ... And in what combination does it work.

A
andreyqin, 2014-04-08
@andreyqin

I'm interested myself now. Perhaps this link will suit you - learn.javascript.ru/websockets

F
Fenomen51, 2014-12-03
@Fenomen51

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 question

Ask a Question

731 491 924 answers to any question