Files
archived-frankenphp/docs/mercure.md
Kévin Dunglas 4b1679e70f chore: bump deps
2025-06-02 17:36:51 +02:00

803 B

Real-time

FrankenPHP comes with a built-in Mercure hub! Mercure allows you to push real-time events to all the connected devices: they will receive a JavaScript event instantly.

No JS library or SDK is required!

Mercure

To enable the Mercure hub, update the Caddyfile as described on Mercure's site.

The path of the Mercure hub is /.well-known/mercure. When running FrankenPHP inside Docker, the full send URL would look like http://php/.well-known/mercure (with php being the container's name running FrankenPHP).

To push Mercure updates from your code, we recommend the Symfony Mercure Component (you don't need the Symfony full-stack framework to use it).