Merge pull request #1073 from solarwrath/patch-1

Small typo in article about WebSockets
This commit is contained in:
Ilya Kantor 2019-06-24 08:39:25 +03:00 committed by GitHub
commit 816bc5e8a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ Why should one ever use it?
The main reason: it's simpler. In many applications, the power of `WebSocket` is a little bit too much.
We need to receve a stream of data from server: maybe chat messages or market prices, or whatever. That's what `EventSource` is good at. Also it supports auto-reconnect, something we need to implement manually with `WebSocket`. Besides, it's a plain old HTTP, not a new protocol.
We need to receive a stream of data from server: maybe chat messages or market prices, or whatever. That's what `EventSource` is good at. Also it supports auto-reconnect, something we need to implement manually with `WebSocket`. Besides, it's a plain old HTTP, not a new protocol.
## Getting messages