EventSource vs. wrapped WebSocket with HTML5 Server-Side Event

HTMLWeb DevelopmentFront End Technology

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
Updated on 24-Jun-2020 14:11:46