Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-websocket

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-websocket

Aid for fullstack Redux applications

  • 0.2.0-dev.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by150%
Maintainers
2
Weekly downloads
 
Created
Source

#redux-websocket Build Status

This module provides communication over a WebSocket between the server and clients in a fullstack Redux application.

It consists of three different concepts. While they are intended to be used together they are all self standing and can be used in any combination you like and you can even plugin in your own or replace the bundled ones.

Action delivery

Actions can be declared to be sent over the WebSocket using meta information. This makes it possible to communicate using normal Redux actions and as the information as stored in a separate object an application can even be retrofitted to dispatch actions over the network.

Remote Procedure Calls

Function calls from the client to the server is used as action creators in cases where the server need to do validations or similar things that the client can not be trusted with. These are configured using decorators which makes them as easy to both write and call as any other function.

State synchronization

If you simply want same of the state exactly the same on the server and the client a store enhancer can be configured to automatically dispatch diffs to the client when the server state changes. It also keeps track of versions so that a client get the newest state when it connects.

Usage

Set up a server by instantiating WebSocketServer from redux-websocket/lib/server. Set up a client by instantiating WebSocketClient from redux-websocket/lib/client.

Action delivery

Apply websocketMiddleware from both redux-websocket/lib/server and redux-websocket/lib/client on the corresponding side.

TODO: More description and detail pages

Authorization

Currently not implemented

FAQs

Package last updated on 13 May 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc