Files
pipecat/examples/websocket-server
allenmylath 6de82b3c11 Create .env.example (#562)
* Create .env.example

.env.example file with required env variables not added hence adding

* Rename .env.example to env.example

file name corrected as directed
2024-10-14 08:52:46 -07:00
..
2024-09-23 09:53:37 -07:00
2024-10-14 08:52:46 -07:00

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.