tonyhb / tectonic

A declarative REST data loader for React and Redux. Docs @
https://tonyhb.github.io/tectonic/
456 stars 31 forks source link

Create a websocket driver #43

Open tonyhb opened 7 years ago

tonyhb commented 7 years ago

In order to get live feeds for data we should create a websocket component.

Questions:

If the websocket endpoint returns a live feed for use with subscriptions (#35) we should indicate that the source definition returns a feed:

manager.fromSocket([
  {
    meta: {
      url: '/api/v0/eents',
      // tbd... 
  },
  returns: Event.feed(), // TBD: is this a feed for a single item or a list of items?
])