method EventSource.closeEventSource.close(): voidDeprecatedAborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. Return Typevoid