Skip to main content
EventSource.close - Fetch - Web documentation
method EventSource.close
EventSource.close(): void

Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.

Return Type

void