rijs.backpressure

By default, the Sync module sends all resources to all clients. Users can limit this or change the representation sent to clients for each resource using the to transformation function. This module alters the default behaviour to only send resources and updates to clients for resources that they are using to eliminate over-fetching. You can still use the to hook to add extra business logic on top of this.

Usage no npm install needed!

<script type="module">
  import rijsBackpressure from 'https://cdn.skypack.dev/rijs.backpressure';
</script>

README

Ripple | Backpressure

Coverage Status Build Status

By default, the Sync module sends all resources to all clients. Users can limit this or change the representation sent to clients for each resource using the to transformation function. This module alters the default behaviour to only send resources and updates to clients for resources that they are using to eliminate over-fetching. You can still use the to hook to add extra business logic on top of this.

This works with both the declarative usage:

<twitter-feed data="tweets" css="styles.css">
// you will be sent twitter-feed, tweets, and styles.css

And the imperative usage:

ripple('object') // will eventually resolve to value from server

TODO

  • Explore subresource tracking
  • Explore untracking