Skip to content

Commit 326d46a

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

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)