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.
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)