streamPortal method
CancelFunction
streamPortal({})
Implementation
CancelFunction streamPortal({
required String portalId,
String? userId,
required Map<String, String> filledVariables,
required List<ChatMessage> messages,
required Function(PortalResponse) onNewResponse,
required Function() onClose,
required Function(dynamic) onError,
}) {
return streamEndpoint(
endpoint: 'portal',
id: portalId,
userId: userId,
filledVariables: filledVariables,
messages: messages,
onNewResponse: onNewResponse,
onClose: onClose,
onError: onError,
);
}