What are Server-Sent Events in HTML5?

devquora
devquora

Posted On: Feb 22, 2018

 

Server-Sent Events are just events that flow from the webserver to the web browsers. With this event, the webpage automatically gets an update from the server. When new information is available in the server, it sends the data to the client without the need for continuous polling. The element is used added to use the Server-Sent Events in your document. The src attribute in the element is used to provide the URL that points to the persistent HTTP connection.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    HTML5 interview questions

    What is HTML5 ?

    HTML5 is the most recent version of the HTML(Hypertext Markup Language). It is a language for structuring and displaying content for the World Wide Web, a core technology of the Internet...

    HTML5 interview questions

    What is < !DOCTYPE>? Is it necessary to use in HTML5 ?

    The &lt; !DOCTYPE&gt; is an instruction to the web browser about what version of HTML the page is written in. AND The &l..

    HTML5 interview questions

    List out the new features of HTML5?

    Some of the most interesting new features in HTML5:The &lt;canvas&gt; element for 2D drawing The &lt;video&gt; and &lt..