-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use the mercure()
Twig function to subscribe to two different URLs at different places
#71
Comments
Hi @tamcy, the second approach is the correct way, passing an array of topics. |
ThomasLandauer
added a commit
to ThomasLandauer/symfony-docs
that referenced
this issue
Jan 17, 2025
Page: https://symfony.com/doc/6.4/mercure.html#subscribing Closes symfony#20574 Closes symfony/mercure-bundle#71 Closes symfony/mercure-bundle#82 Info is taken from symfony#20574 (comment)
javiereguiluz
added a commit
to symfony/symfony-docs
that referenced
this issue
Jan 21, 2025
This PR was merged into the 6.4 branch. Discussion ---------- [Mercure] Adding hint for multiple topics Page: https://symfony.com/doc/6.4/mercure.html#subscribing Closes #20574 Closes symfony/mercure-bundle#71 Closes symfony/mercure-bundle#82 Info is taken from #20574 (comment) Commits ------- 3dca32e [Mercure] Adding hint for multiple topics
IMO, this can be closed by symfony/symfony-docs#20580 |
Thanks! |
alanzarli
pushed a commit
to smsbox-net/symfony-docs
that referenced
this issue
Jan 21, 2025
Page: https://symfony.com/doc/6.4/mercure.html#subscribing Closes symfony#20574 Closes symfony/mercure-bundle#71 Closes symfony/mercure-bundle#82 Info is taken from symfony#20574 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Assume that I want to subscribe to two (or more) private updates. By intuition I'd write this:
But doing so will cause the following exception from
Symfony\Component\Mercure\Authorization::updateCookies
:I am currently working around this by specifying all subscribing URLs in one of the
mercure()
function call:This works, but doesn't look straightforward. Is this a limitation of the current implmentation of the bundle, or am I doing it wrongly?
The text was updated successfully, but these errors were encountered: