Open bluddy opened 7 years ago
BTW I ended up using the React interface and it works nicely. Definitely easier to use currently than the Eliom_notif interface, and I don't currently need the subscription mechanism (though that's obviously an advantage of notif).
Documentation here would be really welcome. Where the documentation says, "Create a module for each kind of notifications you want using module Eliom_notif.Simple. For example the notifications of new messages in a chat," it would be nice to see an example of such a module and its usage.
The documentation continues, "Each client process must register on each resource for which it wants to receive the the notifications (each chat currently opened, in our example), using function Eliom_notif.Simple.listen," but it's utterly unclear to me how I can create a module in such a way that it is accessible from the clients.
I'd like to have some dynamic notifications in my web app (ie. not just when the page is loaded) flowing from server->client or client->client. I'd like to avoid React for now since my last foray into FRP wasn't too great (in haskell). Using the Bus is one solution, and I may have to use that, but I'd like to try the Eliom_notif module first since it seems to fit my use-case more.
The documentation is unclear, though, and there isn't an example to illustrate how the functions would work.