How to make an update on any event on the client without reloading the page?

A project on Yii2.

There is a certain entity, let's say it's post. It is open from two users. The first user wrote a comment to the post. How to make the review came from the second user without reloading the page browser ?

Thanks in advance.
June 14th 19 at 20:50
1 answer
June 14th 19 at 20:52
Googled the sse Protocol
Here's an example
https://m.habrahabr.ru/post/120429/
Why not a normal websocket ?)
The user is heard in the poker room and the event gets updated information ) - Austin commented on June 14th 19 at 20:55
, sse easier socket ) and PY socket is not very friendly , it is easier to write than golang on page stumble ) - Pinkie_Rogah commented on June 14th 19 at 20:58
Agree , gofer that is necessary =)
He did chat - a-La social networking sites on it. - Austin commented on June 14th 19 at 21:01

Find more questions by tags PHP