elf-pavlik / solid-notifications-demo

Demo for Real Time Solid @ Solid Symposium 2024
MIT License
2 stars 0 forks source link

javascript/client example #1

Open thhck opened 1 month ago

thhck commented 1 month ago

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.

elf-pavlik commented 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.