Skip to content

ddematheu2/ACS-UI-Library-with-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Bot-UI-Sample

Chat Function

Go into directory

cd Chat Function

Insert connection String and endpoint

index.ts

const connectionString = 'HEEEEEEEEEERRRRRRRRRREEEEEEEEEE'
const endpoint = "HEEEEEEEEEERRRRRRRRRREEEEEEEEEE"

Run with F5

Chat App

Go into directory

cd Chat App/chatapp

Install dependencies

npm i

Insert endpoint

App.tsx

  const endpoint = "HEEEEEERRRRREEEEEEEEE";

Insert function URL

App.tsx

  useEffect(() => {
    fetch("HEEEEERRRREEEEE")
    .then(response => response.json())
    .then(data => {
      setUser({
        userId: data.user, 
        credential: new AzureCommunicationTokenCredential(data.userToken.token)
      })
      setThreadId(data.threadId)
    });
  },[])

Run

npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published