A socket DataSource for Falcor


2422.10.13 years ago5 years agoMinified + gzip package size for @graphistry/falcor-socket-datasource in KB


Falcor Socket DataSource
NPM version Dependency Status Build Status Coverage Status

A socket DataSource for Falcor.


npm install falcor-socket-datasource


  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")


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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.