0 votes
in JavaScript by
What are the events available for server sent events in Javascript?

1 Answer

0 votes
by

Below are the list of events available for server sent events

EventDescription
onopenIt is used when a connection to the server is opened
onmessageThis event is used when a message is received
onerrorIt happens when an error occurs
...