A Guide to migrating from an RTVIClient to PipecatClient in React
PipecatClient
in a React application. The new client introduces simplified configuration and improved client-server messaging. For an overview of the changes, see the top-level RTVIClient Migration Guide.
connect()
was called on the client instance without parameters. Now, you provide connection parameters directly to the connect()
method. This allows for more flexibility and customization of the connection process. For ease of use, we’ve also introduced a startBot()
and startBotAndConnect()
method where you can provide an API endpoint that returns the connection parameters.
Old
startBotAndConnect()
):
connect()
.connect()
.PipecatClient
member functions or client-server messaging.PipecatClient
methods or custom messaging