Simple example showing how to broadcast to websockets using rabbitmq and aio-pika on FastAPI
Bring the containers up with:
docker-compose up -d --build
Open up three internet browesers and navigate each one to the following addresses
You should have something that looks like this:
Click the button in windows (1) and (2) and then window (3), expand down the "push" endpoint, click "Try It", enter a message and click execute. All being well, you should see the message appear in both windows! 😃 🚀