disconnect method
Disconnects from the event stream.
Closes the HTTP client and the stream controller. Returns the disconnection status enum.
Usage Example:
EventFluxStatus disconnectStatus = await EventFlux.instance.disconnect();
print(disconnectStatus.name);
Implementation
@override
Future<EventFluxStatus> disconnect() async {
_isExplicitDisconnect = true;
_reconnectConfig = null;
return await _stop();
}