Skip to content
This repository has been archived by the owner. It is now read-only.

How can I maintain a pointer to a file? #3

Closed
philholden opened this issue Apr 4, 2015 · 4 comments
Closed

How can I maintain a pointer to a file? #3

philholden opened this issue Apr 4, 2015 · 4 comments
Labels

Comments

@philholden
Copy link

philholden commented Apr 4, 2015

Suppose I had a slideshow stored in ipfs where each slide was an html file stored in an ipfs directory. How would I go about maintaining a pointer to the current slide, such that a browser polling a certain URL would always see the current slide?

If so is there any way to subscribe to change events for this pointer?

@jbenet
Copy link
Contributor

jbenet commented Apr 5, 2015

@philholden did you get your question answered?

In any case: take a look at the Simple JS Apps in http://ipfs.io/docs/examples/ -- they use a #<path> "argument".

@philholden
Copy link
Author

philholden commented Apr 5, 2015

Thanks for responding the project seems really interesting (I have now listened to the three talks).

I will try to rephrase the question.

I'd like web clients to refetch data when an IPNS entry changes. I am guessing I'd need a Go server with websockets.

From Go can I subscribe to IPNS locator change events or do I just have to poll?
Is there a better way built into IPNS of getting these change events to the client?

@whyrusleeping
Copy link

whyrusleeping commented Apr 6, 2015

currently there is no way to be notified of a change in an ipns entry, although we have plans for a pub/sub system through the DHT. This is still a little ways out.

@madavieb
Copy link

madavieb commented May 23, 2017

This issue has been moved to https://discuss.ipfs.io/t/how-can-i-maintain-a-pointer-to-a-file/408.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants