- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
EventSource vs. wrapped WebSocket with HTML5 Server-Side Event
The event source is just a web socket that -
- That cannot send data
- Uses text or event stream format
- It fires events that are server defined
It is useful in applications that only need server push.
Web sockets are good for applications that need fast communications in both directions.
Another major difference is the different security models they used.
Server Send events are useful for −
- Live Feeds
- Live Scores
- Stock Market Update
Advertisements