Files
pipecat/examples/websocket-server
2024-11-04 13:05:02 -08:00
..
2024-10-14 11:49:35 +05:30
2024-10-14 08:52:46 -07:00
2024-10-14 11:22:56 +05:30
2024-10-14 11:20:12 +05:30

Websocket Server

This is an example that shows how to use WebsocketServerTransport to communicate with a web client.

Get started

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp env.example .env # and add your credentials

Run the bot

python bot.py

Run the HTTP server

This will host the static web client:

python -m http.server

Then, visit http://localhost:8000 in your browser to start a session.