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

Comments

Projects
None yet
5 participants
@philholden
Copy link

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?

@philholden philholden closed this Apr 5, 2015

@jbenet

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link

commented May 23, 2017

@madavieb madavieb closed this May 23, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.