Files
pipecat/examples/websocket-server/README.md
2024-05-31 12:09:54 -07:00

445 B

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

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.