Added
-
#712 Added support to integrate Shlink with a mercure hub server.
Thanks to that, Shlink will be able to publish events that can be consumed in real time.
For now, two topics (events) are published, when new visits occur. Both include a payload with the visit and the shortUrl:
- A visit occurs on any short URL:
https://shlink.io/new-visit
. - A visit occurs on short URLs with a specific short code:
https://shlink.io/new-visit/{shortCode}
.
The updates are only published when serving Shlink with swoole.
Also, Shlink exposes a new endpoint
GET /rest/v2/mercure-info
, which returns the public URL of the mercure hub, and a valid JWT that can be used to subsribe to updates. - A visit occurs on any short URL:
Changed
- Nothing
Deprecated
- Nothing
Removed
- Nothing