8000 [Mercure] Adding hint for multiple topics by ThomasLandauer · Pull Request #20580 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Mercure] Adding hint for multiple topics #20580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mercure.rst
5112
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
Loading
0