Skip to content

Commit 2a777ac

Browse files
committedJan 21, 2025
Merge branch '6.4' into 7.1
* 6.4: Minor tweaks [Mercure] Adding hint for multiple topics
2 parents 39b2464 + e5e62c4 commit 2a777ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎mercure.rst

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

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.