0

I am using eventSource for subscription

 const eventSource = new EventSource(url);
        eventSource.onmessage = event => { console.log('publishEventFromTopic');}

After 6th connection (new tab in the browser), the connection to the server starts to be pending, cant subscribe to the event. How I can configure this, Mercure works in the docker container

Den Step
  • 1
  • 1
  • 1
    You must run your apach2/nginx virtual host over HTTP/2 protocol at least, AND your Reverse proxy rule. Over HTTP/1 Mercure allow only 6 connections (browser tabs). – Francisco Jul 18 '22 at 04:32
  • @Francisco how could I easily do it on docker? – Den Step Jul 18 '22 at 05:34
  • Hi, i don't use Docker but, the idea is to configure your dockerized webserver or virtual host for use http2 – Francisco Jul 18 '22 at 14:55

0 Answers0