Home > Article > Web Front-end > Comparison between EventSource and WebSocket encapsulated using HTML5 server-side events
The event source is just a web socket, -
It is useful in applications that only require server push.
Web Sockets are suitable for applications that require fast two-way communication.
Another major difference is the different security models they use.
Server Sent Events For-
The above is the detailed content of Comparison between EventSource and WebSocket encapsulated using HTML5 server-side events. For more information, please follow other related articles on the PHP Chinese website!