tonyhb / tectonic

A declarative REST data loader for React and Redux. Docs @

Home Page:https://tonyhb.github.io/tectonic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a websocket driver

tonyhb opened this issue · comments

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

Questions:

  • How do we differentiate feeds within queries and source definitions?

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?
])