Skip to content

Commit fb719d2

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Minor tweaks [Mercure] Adding hint for multiple topics
2 parents a82ca49 + 326d46a commit fb719d2

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)