Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Create a hook and component for subscribing to updates #14

@RubenVerborgh

Description

@RubenVerborgh

We should create a hook that listens to NSS Web Sockets (https://github.com/solid/solid-spec/blob/master/api-websockets.md) and returns the last update.

For instance:

const { document, date } = useLastUpdate('http://example.org/foo', 'http://example.org/bar');

and, with a small component wrapper:

<TrackUpdates subscribe="http://example.org/foo,http://example.org/bar">
  <MyContent />
</TrackUpdates>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions