npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

@graphistry/falcor-socket-datasource

2.10.1 • Public • Published

Falcor Socket DataSource
NPM version Dependency Status Build Status Coverage Status

A socket DataSource for Falcor.

Installation

npm install falcor-socket-datasource

Usage

  1. Import Falcor and this library
  2. Create a new Falcor.Model
  3. Set its source to a new FalcorSocketDataSource
  4. Use the model as usual
import Falcor from "falcor";
import FalcorSocketDataSource from "falcor-socket-datasource";
 
const model = new Falcor.Model({
    source: new FalcorSocketDataSource("ws://localhost:8080")
});
 
model.get(...).subscribe(...);

This library uses Socket.IO Client, so using Socket.IO as a server would be a wise choice.

An example of a simple socket server can be found in this test file.

install

npm i @graphistry/falcor-socket-datasource

Downloadsweekly downloads

161

version

2.10.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability