Put in order · Vibe coding with Claude Code course · Module 7: LinkedIn clone
Sorting: The path of a chat message
Order the path of a message from clicking Send to the second tab:
Items to put in order
- onmessage in the second tab appends the message to state
- The tab sends a POST with { content } to /api/messages/anne
- The server checks the content and takes the sender from getCurrentUser()
- Every open stream of this conversation gets the event
- addMessage saves the message and calls publish
You can check the correct answer by solving this task in the CodeWorlds game.