Skip to content

Commit 3dca32e

Browse files
[Mercure] Adding hint for multiple topics
Page: https://symfony.com/doc/6.4/mercure.html#subscribing Closes #20574 Closes symfony/mercure-bundle#71 Closes symfony/mercure-bundle#82 Info is taken from #20574 (comment)
1 parent 644ac22 commit 3dca32e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mercure.rst

+5
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ as patterns:
309309
}
310310
</script>
311311

312+
However, on the client side (i.e. in JavaScript's ``EventSource``), there is no built-in way
313+
to see which topic a certain message is coming from. So if this (or any other meta information)
314+
is important to you, you need to include it in the message's data (e.g. by adding a key to the
315+
JSON, or a `data-*` attribute to the HTML).
316+
312317
.. tip::
313318

314319
Test if a URI Template matches a URL using `the online debugger`_

0 commit comments

Comments
 (0)