🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@graphistry/falcor-socket-datasource

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphistry/falcor-socket-datasource

A socket DataSource for Falcor

latest
Source
npmnpm
Version
2.11.3
Version published
Weekly downloads
2.7K
109.48%
Maintainers
2
Weekly downloads
 
Created
Source

Falcor Socket DataSource
NPM version Dependency Status Build Status Coverage Status

A socket DataSource for Falcor.

Installation

npm install falcor-socket-datasource

Usage

  • Import Falcor and this library
  • Create a new Falcor.Model
  • Set its source to a new FalcorSocketDataSource
  • 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.

Keywords

datasource

FAQs

Package last updated on 29 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts