You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FrankenPHP comes with a built-in [Mercure](https://mercure.rocks) hub!
4
-
Mercure allows to push events in real-time to all the connected devices: they will receive a JavaScript event instantly.
4
+
Mercure allows you to push real-time events to all the connected devices: they will receive a JavaScript event instantly.
5
5
6
-
No JS library or SDK required!
6
+
No JS library or SDK is required!
7
7
8
8

9
9
10
10
To enable the Mercure hub, update the `Caddyfile` as described [on Mercure's site](https://mercure.rocks/docs/hub/config).
11
11
12
-
To push Mercure updates from your code, we recommend the [Symfony Mercure Component](https://symfony.com/components/Mercure) (you don't need the Symfony full stack framework to use it).
12
+
The path of the Mercure hub is `/.well-known/mercure`.
13
+
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).
14
+
15
+
To push Mercure updates from your code, we recommend the [Symfony Mercure Component](https://symfony.com/components/Mercure) (you don't need the Symfony full-stack framework to use it).
0 commit comments