initialize method
Initializes the chat plugin with the necessary configuration.
Must be called before streamResponse
.
Implementation
@override
Future<void> initialize({
required String domain,
required String chatbotId,
}) async {
_domain = domain;
_chatbotId = chatbotId;
await _streamController?.close();
_streamController = null;
SSEClient.unsubscribeFromSSE();
}