I want every user to be notified when a new .ttl file is created in this container, and be notified everytime each file in this folder is modified.
so i create a first web socket to https://pod.inrupt.com/spoggy/public/game/
and then looking at the files in the container, create a new websocket for each of the files in it .
First question : Is it the good way to be notified of each change in any file ? or is there something like a wildcard that could be used like "subscribe to https://pod.inrupt.com/spoggy/public/game/* " ?
Playing a little with it i see some inconsistency : for example, sometimes user is notified when a new file is created, sometimes not, sometimes he is notified when a resource is modified, sometimes not.
The create button create a new resources, and the list of resources should be updated for everyone.
Then selecting a resource allow to modify it with 4 buttons "up, down, right, left". When a resource is modified, every other user should receive the message, but whereas the websocket indicates that the subscribtion has been made to a specific topic (container or resource) the message does not arrive each time. sometimes yes & sometimes not.
Do i misuse notification lib or is it something on the ESS server ?
Looking for using notification I use a container at https://pod.inrupt.com/spoggy/public/game/ (shared with everyone can read/write/modify).
I want every user to be notified when a new .ttl file is created in this container, and be notified everytime each file in this folder is modified.
so i create a first web socket to https://pod.inrupt.com/spoggy/public/game/ and then looking at the files in the container, create a new websocket for each of the files in it . First question : Is it the good way to be notified of each change in any file ? or is there something like a wildcard that could be used like "subscribe to https://pod.inrupt.com/spoggy/public/game/* " ?
Playing a little with it i see some inconsistency : for example, sometimes user is notified when a new file is created, sometimes not, sometimes he is notified when a resource is modified, sometimes not.
Here is a quick demo of the inconsistency : https://youtu.be/m6TY-K-_61Q
And the functionnal app https://scenaristeur.github.io/game-sync/ (you must login with "Broker Pod Inrupt" before sending changes)
The create button create a new resources, and the list of resources should be updated for everyone. Then selecting a resource allow to modify it with 4 buttons "up, down, right, left". When a resource is modified, every other user should receive the message, but whereas the websocket indicates that the subscribtion has been made to a specific topic (container or resource) the message does not arrive each time. sometimes yes & sometimes not.
Do i misuse notification lib or is it something on the ESS server ?
here is my code https://github.com/scenaristeur/game-sync/blob/9a21ac9d6002b22a14ed911f547f1143b0365bc0/src/plugins/solid-sync.js#L68