Horje
What are The EventSource Object

In the examples above we used the onmessage event to get messages. But other events are also available:

Events Description
onopen When a connection to the server is opened
onmessage When a message is received
onerror When an error occurs

Reffered: https://www.w3schools.com/html/html5_serversentevents.asp





Related Articles
What is HTML SSE API HTML SSE API
How to add Server-Sent Events - One Way Messaging HTML SSE API
What types of browsers will support HTML SSE API HTML SSE API
How to Receive Server-Sent Event Notifications HTML SSE API
How to Check Server-Sent Events Support HTML SSE API
What is Server-Side Code Example HTML SSE API
What are The EventSource Object HTML SSE API


Read Full:
HTML SSE API
Category:
Web Tutorial
Sub Category:
HTML SSE API
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
37



Share on: