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
3
votes
0 answers

SSL error when trying to connect to local Caddy server

I have setup a Mercure hub from Symfony/api-platform. Mercure hub is being served via Caddy over SSL (e.g. https://example.com/.well-known/mercure). Caddy is a dockerized service. I am trying to build a golang microservice on the same docker-compose…
marioskamperis
  • 135
  • 1
  • 10
3
votes
1 answer

Symfony 5 Mercure Failed to send an update SSL connect error for "https://127.0.0.1:8000/.well-known/mercure"

i'm student and beginner, sorry in advance if i don't understand. I try to use Symfony 5 with mercure but i have some difficulty to send an update to the hub. i check the document to Symfony Mercure doc and think to make a good part about that but…
devstudent
  • 31
  • 5
3
votes
1 answer

Symfony + Mercure connection problems. Use HTTPS instead of HTTP

I was trying to establish a connection between two docker containers. One as nginx server + Symfony application, and the second with Mercure. My application is working fine, docker-compose build also works without any problems. The problem is when I…
Eddy
  • 593
  • 8
  • 22
2
votes
2 answers

Configuration of Mercure with Symfony 5

I'm trying to code a chat with Symfony 5 and Mercure, but I have some issues with the configuration. I work with Windows 10. This is the documentation that I followed : https://github.com/dunglas/mercure/blob/main/docs/hub/install.md I installed…
Ben
  • 15
  • 4
2
votes
1 answer

Symfony / Mercure / JS EventSource don't send cookie

I've been blocking this issue for 2 days now. I'm trying to set up authentication for Mercure so that a customer can subscribe to "private" hubs. So I configured my environment variables as stipulated in the Symfony and Mercury documentation here…
Stollpy
  • 35
  • 6
2
votes
1 answer

Mercure & Event Source Polyfill :Error : No activity within 45000 milliseconds. 2 chars received. Reconnecting

I have a symfony / api PLatform server. I added Mercure to send SSE to API clients. On my client side I subscribe using event Source Polyfill. I manage to receive the messages, but I have the following error : Error: No activity within 45000…
Alexglvr
  • 427
  • 5
  • 18
2
votes
1 answer

Mercure Docker Invalid JWT Signature from ignoring JWT_KEY from docker-compose

I have a docker-compose which fires up a mercure container docker-compose version: '3.8' services: ... mercure: image: dunglas/mercure ports: - '8003:443' - '8004:80' environment: …
PrimuS
  • 2,505
  • 6
  • 33
  • 66
2
votes
0 answers

Symfony error Couldn't connect to server for "http://localhost:3000/.well-known/mercure"

I have a problem using mercury on a Symfony project, I installed mercury at the root of my project, however, when I test sending a request to mercury I got the error Couldn't connect to server for "http://localhost:3000/.well-known/mercury" While…
2
votes
1 answer

get Unauthorized when trying to send post request to mercure hub

I'm working with mercure to get real time response. i configured mercure with docker : mercure: container_name: mercure image: dunglas/mercure restart: always environment: PUBLISHER_JWT_KEY: mySecretKeyPublisher …
Khaled Boussoffara
  • 1,567
  • 2
  • 25
  • 53
2
votes
2 answers

How to run Mercure in production with Apache

I have a Symfony project on an Apache server that uses Mercure and I try to setup the Mercure hub in production. To run the Mercure hub in production, I extract the archive mercure_0.6.2_Linux_x86_64.tar.gz…
2
votes
2 answers

Is this possible to get mercure protocol with Heroku using API platform?

I deployed a API Platform api and client using Heroku but it seems that Mercure is not working out of the box, but I think my application may have missing configuration. The only thing I configured is this…
2
votes
1 answer

How to run Mercure in production

I'm trying to run Mercure on Symfony within a production env. [1st problem] It seems that I need to keep my ssh connection active in order to keep mercure running. Also, I would like to be able to run multiple instance of Mercure (one per…
Preciel
  • 2,666
  • 3
  • 20
  • 45
2
votes
1 answer

api-platform: automatic mercure subscriptions for GraphQL queries

api-platform automatically issues events to a mercure hub when updating resources marked with mercure=true and publishes the topics to listen on in the according GET endpoints. Nice. Is there already an option that I can use in the generated GraphQL…
Stefan
  • 3,382
  • 4
  • 23
  • 27
1
vote
1 answer

Symfony + Mercure / Server Side Events to Angular 16

I have a Symfony backend (BoltCMS) with a custom CaddyServer with the Mercure plugin and I am trying to send a message to my Angular 16 frontend on the event when I save something in the backend so that I can refresh the cache in the Angular…
1
vote
0 answers

How Symfony/Mecure works with docker?

I'm trying to make a taskmanager app where each user on a page received an update if a new task is created, if a task is deleted or if a task is edited. So I try to use Mercure to do that. I'm using nginx as a webserver and php-fpm for the Symfony…
jeff
  • 35
  • 6
1
2 3 4 5 6 7