LDflex / Query-Solid

Simple access to data in Solid pods through LDflex expressions
https://solid.github.io/query-ldflex/
MIT License
66 stars 15 forks source link

Enable to use websockets #6

Closed jairo-campos-JD closed 5 years ago

james-martin-jd commented 5 years ago

This is tracked in https://github.com/RubenVerborgh/LDflex-Comunica/issues/4, I'm not sure if there is any work to do in this repo for this feature.

james-martin-jd commented 5 years ago

Added a milestone, which is targeting a mid-March release

RubenVerborgh commented 5 years ago

@jairo-campos-JD @james-martin-jd Not entirely what you had in mind, but solid.data.clearCache() now clears the local cache as of v2.4.0.

Since LDflex is currently not using any websockets, it did not make much sense to use it just for cache invalidation. Rather, I assume that your application is already using websocjets, so whenever you see an update pass by, calling solid.data.clearCache(document) (the parameter being optional), you can get the desired result.