close

Bun

Symbol

EventSource.close

close(): void

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

MDN Reference