Skip to content

Commit

Permalink
[Mercure] Adding hint for multiple topics
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLandauer authored Jan 17, 2025
1 parent 644ac22 commit 3dca32e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mercure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,11 @@ as patterns:
}
</script>

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`_
Expand Down

0 comments on commit 3dca32e

Please sign in to comment.