4 ms·
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
by overlisted 4y ago
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.
- stichers 4y agoThanks