Open thhck opened 1 month ago
Is there something node-specific in those examples that can't be used in the browser? Webhooks are not meant to run in the browser, so we only talk about Websocket and Streaming HTTP examples.
Possibly, the only node-specific line is disabling the body timeout in fetch. I'm trying to figure out the equivalent in the browser.
I see mostly node example in this repo and have a few idea on how to implement it client side, but was wondering what was the proper way to implement it ?
The goal is to open client.html file in a browser, then run
curl -X PUT http://localhost:3000/demo/foo ...
and see magically the browser page with the new value.