Pipecat C++ Client SDK 1.0.0
Connect native apps to Pipecat bots
Loading...
Searching...
No Matches
pipecat::TransportObserver Class Referenceabstract

#include <pipecat/transport.h>

Public Member Functions

virtual void on_transport_message (const nlohmann::json &message)=0
 A message arrived from the bot. message is the RTVI message as JSON.
 
virtual void on_bot_connected (const Participant &bot)=0
 The bot joined the session.
 
virtual void on_bot_disconnected (const Participant &bot)=0
 The bot left the session.
 
virtual void on_participant_joined (const Participant &participant)=0
 Someone other than the bot joined the session.
 
virtual void on_participant_left (const Participant &participant)=0
 Someone other than the bot left the session.
 
virtual void on_transport_error (const std::string &error, bool fatal)=0
 
virtual void on_transport_disconnected ()=0
 

Detailed Description

Receives events from a transport.

The client gives one to Transport::initialize(). Transports can call its methods from any thread. They return right away and never block.

Member Function Documentation

◆ on_transport_disconnected()

virtual void pipecat::TransportObserver::on_transport_disconnected ( )
pure virtual

The transport disconnected on its own, e.g. because the session ended or the network dropped. Not called after Transport::disconnect().

◆ on_transport_error()

virtual void pipecat::TransportObserver::on_transport_error ( const std::string &  error,
bool  fatal 
)
pure virtual

Something went wrong in the transport. fatal is true if the session can't go on, e.g. because the bot's room was closed.


The documentation for this class was generated from the following file: