Symfony UX: Turbo
Mercure Hub's JWT Authorization
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

Mercure is installed and ready. I have the following template in my chat page that can receive new messages from other users!

<div {{ turbo_stream_listen('new-messages') }}></div>

<turbo-frame id="chat-messages">
    {{ include('chat/_messages.html.twig') }}
</div>

<turbo-frame id="user-list">
    {{ include('chat/_user-list.html.twig') }}
</div>

Now I need to send updates to that template in order to receive new messages coming from other users!

Assuming our JWT is already correctly signed, what should the data (i.e. the HTML) portion of that message look like?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.