close method
void
close()
The close()
method of the EventSource
interface closes the connection, if one is made, and sets the
EventSource.readyState attribute to 2
(closed).
Note: If the connection is already closed, the method does nothing.
Implementation
external void close();