News for hackers. Stuff that matters.
Re:The realtime web: evolution of the user experience by overlisted on Monday May 09, 2022 @11:32AM (#31315446)
They would be a lot clearer if they showed how the messages actually look, with some example data.

For example the HTTP one could have `{ timeout: 60000 }` in its requests and stuff like `{ events: [{ type: "something_changed" }] }` in the responses.

And the WS messages could look something like `{ action: "send_message", content: "hi" }` and `{ event: "new_message", content: "hi" }`.

Just an idea.

Re:The realtime web: evolution of the user experience by stichers on Monday May 09, 2022 @12:54PM (#31316575)
Thanks