Working with Twilio conversation-demo app, but
ConversationsClient.create(this.state.token);
.create
method is depreceated, so how can we initConversations.
And anyone can please help me how to do the sdk in react hooks.
Asked
Active
Viewed 179 times
0

Abhishek Singh
- 563
- 1
- 6
- 18
1 Answers
1
with "@twilio/conversations": "^2.1.0",
creating chat token from the ConversationsClient.create
is deprecated. you should be creating a token
from a server before you can use client
instance as follows:
import {Client} from '@twilio/conversations'
const client = new Client(token)

Jeffox
- 2,341
- 2
- 8
- 8