From 3dca32e1cf1838b812d61e04baeade9b2e5b1716 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Fri, 17 Jan 2025 10:45:36 +0100 Subject: [PATCH] [Mercure] Adding hint for multiple topics Page: https://symfony.com/doc/6.4/mercure.html#subscribing Closes https://github.com/symfony/symfony-docs/issues/20574 Closes https://github.com/symfony/mercure-bundle/issues/71 Closes https://github.com/symfony/mercure-bundle/issues/82 Info is taken from https://github.com/symfony/symfony-docs/issues/20574#issuecomment-2597102678 --- mercure.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mercure.rst b/mercure.rst index f37c40ddee7..698de373a17 100644 --- a/mercure.rst +++ b/mercure.rst @@ -309,6 +309,11 @@ as patterns: } +However, on the client side (i.e. in JavaScript's ``EventSource``), there is no built-in way +to see which topic a certain message is coming from. So if this (or any other meta information) +is important to you, you need to include it in the message's data (e.g. by adding a key to the +JSON, or a `data-*` attribute to the HTML). + .. tip:: Test if a URI Template matches a URL using `the online debugger`_ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy