close method

  1. @override
Future close()
override

Closes the SSEClient and tears down connections and resources. Do not use the SSEClient after close is called, behavior is undefined at that point.

Implementation

@override
Future close() async {
  _messageEventsController.close();
}