131 search results

…be a bit misleading: ``` ``` This line basically says: > I want some JavaScript that is listening to the "product-reviews" Mercure topic for "stream" updates. The weird thing about this line is that it doesn't affect the div it's attached to at all…
weaverryan
weaverryan
Read Full Comment
first of all, thanks for these great videos Ryan! for me doesn't work as only simple DIV ``` ``` I had to create an internal child div to replace it ```HTML ``` with the following mercure message ```XML // topic product-reviews asdddddddddddddddasdasdasd ```
{
"controllers": {
"@symfony/ux-turbo": {
"turbo-core": {
"enabled": true,
"fetch": "eager"
},
"mercure-turbo-stream": {
"enabled": false,
"fetch": "eager"
}
}
},
"entrypoints": []
}
See Code Block in Script
Thank you for your reply ! I had both files with these values: ``` cat assets/controllers.json { "controllers": { "@symfony/ux-turbo": { "turbo-core": { "enabled": true, "fetch": "eager" }, "mercure-turbo-stream": { "enabled": false, "fetch": "eager" } } }, "entrypoints": [] } ``` ``` cat assets/bootstrap.js // register any custom, 3rd party controllers here …
…sent a request yet. Also, in mercure.yaml, I tried changing 'default' to 'test' but the error reported still says "The Turbo stream transport 'default' doesn't exist." And that's even after dumping cache. And not sure if it's relevant, but I am…
…json` file: ``` "mercure-turbo-stream": { "enabled": true, "fetch": "eager" } ``` But it now comes from (and is under) the `@symfony/ux-turbo` key, whereas previously it was under a different key and didn't come until you installed the now-not-needed `symfony/ux-turbo-mercure`…
weaverryan
weaverryan
Read Full Comment
…I'm running this tutorial with Symfony 5.3 and PHP 8.1 (as of 5/24/2023). When attempting to run `composer require symfony/mercure-bundle` I get the following error: ``` The following exception probably indicates you have misconfigured DNS resolver(s) In CurlDownloader…
…use that `mercure()` Twig function if it fits your needs well. What about the discovery feature - I didn't use it on my own, so difficult to say. It might be useful for third-party clients, e.g. who are using your Mercure Hub from…
…I've been deep in tutorial land :). Ok, so the system that finds the `MERCURE_` environment variables from Docker and exposes them is entirely the `symfony` binary and your `docker-compose.yaml` file files. So those are the only pieces that will be important here. …
weaverryan
weaverryan
Read Full Comment
…but lack of repo on GitHub to check code to see how it works. There is only one YT tutorial that is outdated about Mercure (and based on that, many people in comments ask and complain about not being able to set it up and…
kyotomano
kyotomano
Read Full Comment
Haha, yay! Well, I hope it works out - I've used Mercure now several times, but still never TOO heavily (though it is super fun). Let me know how it goes. Cheers!
weaverryan
weaverryan
Read Full Comment
…a *terrible* experience - but I really appreciate the honest feedback. I'm going to pass this along to someone I know in the Mercure space - hopefully it can be useful to them. And I'd like to get some answers from them also to make…
weaverryan
weaverryan
Read Full Comment
…I using the Symfony binary as my local web server", It must be already runing" https://symfonycasts.com/screencast/turbo/mercure-service, min.-3:54 . I tried to download mercure.exe file and put it in my project ... but again i can not activate mercure
…i.e. run: $ symfony serve But please, read the first TIP on this page: https://symfonycasts.com/screencast/turbo/mercure-service - follow the instructions there to make it work, it's not working out of the box anymore, the note is explaining things well…
Hi victor Im using web server also I started with "symfony serve", which server should I use for mercure ? Thanks a lot
Hi Team after watching the video and doing the same I get this: No route found for "GET https://127.0.0.1:8000/.well-known/mercure" What can be please ?
…to keep the existing Turbo frame content instead of replacing it with a temporary loading icon etc until new frame content is rendered? For example My Mercure Turbo Stream returns a frame so that I can render the content specific for each user e.g. ``` …
Hello, I am using UX Turbo, I watched this doc : https://github.com/symfony/ux-turbo/#sending-async-changes-using-mercure-a-chat I wanted to know if it is possible to push data to selected users through a query, but also push other data…
Hi Ryan, thanks for the tutorial! I would like also suggest to use http://127.0.0.1:/.well-known/mercure/ui/ to publish and subscribe Mercure events. It is really cool.
…I'm also not sure what could be the problem or how you could debug better :/. Are you able to go directly to http://myIP:3000/.well-known/mercure?topic=https%3A%2F%2FmyIP%3A3000%2Fnotifications in your browser and see the updates being loaded there…
weaverryan
weaverryan
Read Full Comment