Questions tagged [mercure]

Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients. Mercure Hub is a reference implementation of the protocol.

Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients. Mercure Hub is a reference implementation of the protocol. See the Mercure GitHub project page for more details.

101 questions
0
votes
1 answer

symfony5/Mercure : How to troubleshot why I can't connect to my mercure hub

I'm trying to setup a Mercure hub with my symfony app. When I try to publish something on it using the Symfony\Component\Mercure\Publisher class, i'm getting a TransportException from curl : "Couldn't connect to server for…
Mouke
  • 854
  • 1
  • 7
  • 19
0
votes
1 answer

ApiPlatform & Mercure (private topics)

My architecture is based on Symfony 4.4 / ApiPLatform / Mercure / Angular 9. I've made working a simple push from Mercure by adding mercure:true in my resources.yaml ApiPlatform conf file. Now I need to make updates being private. So with…
Samy AZ
  • 31
  • 5
0
votes
1 answer

symfony 5 mercure bundle HTTP/1.1 400 Bad Request returned

I'm trying to use symfony mercure bundle but it doesn't seem to work even with the example given on the documentation. here is my code in my controller /** * @Route("/test", name="test") */ class TestController extends AbstractController { …
0
votes
0 answers

Symfony / Mercure question : 2 users with single self targets can both see each other's supposedly looped messages

I made a chat page where the logged in user should be able to see only his own messages thru single targets. However, every user can see every other user's supposedly self-intended (looped) messages. Every logged in user send his own JWT with…
Coreoida
  • 29
  • 2
0
votes
0 answers

dunglas mercure server / javascript EventSource withCredentials : mercureAutorisation cookie not transmited

Making a mercure /hub dispaching Updates with symfony 4.4 works fine until I dont try using credentials with mercureAuthorization cookie. As soon as I add {withCredentials: true} in EventSource, firefox kicks out event source request connection…
bycrea
  • 1
  • 1
0
votes
2 answers

react native can't subscribe to mercure backend notifications

I'm working on a notifications system with React Native and Symfony. I configured Mercure with docker to handle front subscription to real time updates : the .env file : ###> symfony/mercure-bundle ### # See…
Khaled Boussoffara
  • 1,567
  • 2
  • 25
  • 53
0
votes
1 answer

Mercure + Angular + Symfony >>> all on local machine

I'm local on Mac OS 10.14.6 using Angular 8, Symfony 4.3 and mercure 0.72 darwin. I'm quite new to symfony. I wanted to dispatch updates only to authorized clients on my local machine. So far it really is a big pain. I hope I can find some help or…
Allisone
  • 8,434
  • 4
  • 32
  • 54
0
votes
0 answers

Symfony 4 and MercureBundle

I'm a new user of this platform and I'm trying to integrate Mercure into Symfony by following the documentation: https://symfony.com/blog/symfony-gets-real-time-push-capabilities . Once all the steps in the console are followed of chrome to the…
0
votes
1 answer

How to get Mercure server to automatically push to event subscribers?

I have a quick test Symfony application running to try to integrate the Mercure protocol. I have a test Mercure hub running with the following: JWT_KEY='aVerySecretKey' ADDR='localhost:3000' ALLOW_ANONYMOUS=1 CORS_ALLOWED_ORIGINS=* ./mercure I have…
-1
votes
0 answers

Error with symfony 6.3 : Publisher Interface

I have completed my training, I am still learning, I have created an online chat, and with the help of Google and ChatGPT, I have written the code that works locally on my computer. As soon as I deploy it to a server and run a Symfony console…
Joël
  • 1
  • 1
-2
votes
2 answers

Symfony 5.4 - How am i supposed to properly start mercure using symfony

I installed mercure using the following command as stated in the documentation: composer require mercure After that, i'm supposed to start the mercure server and here is the issue: how? Symfony's documentation doesn't state that. Mercure's…
Gess1t
  • 71
  • 1
  • 9
1 2 3 4 5 6
7