Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @graphistry/falcor-socket-datasource with all npm packages installed. Try it out:

var falcorSocketDatasource = require("@graphistry/falcor-socket-datasource")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@graphistry/falcor-socket-datasource v2.10.1

A socket DataSource for Falcor

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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free