Function useChatClient

Hook to access the chat client provided the current ChatClientProvider. This hook must be used within a ChatClientProvider.

When the hook is not used within a ChatClientProvider.