New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

condux

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

condux

An over-the-wire unidirectional data-flow architecture utilizing Reflux as the flux pattern implementation and SockJS as the websocket implementation.

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

Condux

An over-the-wire unidirectional data-flow architecture utilizing Reflux as the flux pattern implementation and SockJS as the websocket implementation. Use conjunction with condux-client.

Installation

npm install condux --save

API

Condux()

Builds and returns a Condux Server. A Condux Server listens to client actions via its private CLIENT_ACTIONS channel. Client actions are registered using <ConduxServer>.createAction or <ConduxServer>.createActions. Actions must be symmetrically mirrored on the client using <ConduxClient>'s methods <ConduxClient>.createAction and <ConduxClient>.createActions

Kind: global function

condux.attach(server, options)

convenience method for <SockJS>.installHandlers(server,options)

Kind: instance method of Condux

ParamTypeDescription
serverobjecthttp server (express, etc)
optionsobjectpasses options as .installHandlers' second argument

condux.createAction(actionName, options)

wrapper for Reflux.createAction() that ensures actions are registered with the Nexus instance. The ConduxServer instance acts as a dispatch for all client actions registered with it.

Kind: instance method of Condux

ParamTypeDescription
actionNamestring
optionsobjectReflux action options object

condux.createActions(actionNames)

wrapper for Reflux.createActions() that ensures each Action is registered on the server nexus

Kind: instance method of Condux

ParamType
actionNamesarray

condux.createStore(topic, storeDefinition) ⇒ object

wrapper for Reflux.createActions() that ensures each Action is registered on the server nexus

Kind: instance method of Condux
Returns: object - a Reflux store

ParamTypeDescription
topicstringthe name of the channel/frequency the datastore triggers to
storeDefinitionobjectstore methods object, like the one passed to Reflux.createStore

condux.onNewChannel(topic)

dummy hook for when a new channel is created

Kind: instance method of Condux

ParamTypeDescription
topicstringthe name of the newly created channel

Condux.Adapter

use Adapter when your app already has a sockjs service

Kind: static property of Condux

ParamTypeDescription
serviceobjecta SockJS server instance created elsewhere with <SockJS>.createServer

Keywords

reflux

FAQs

Package last updated on 08 Nov 2015

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