0.111.0 • Published 7 years ago

react-cmf-cqrs v0.111.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
7 years ago

Content Management Framework for CQRS (aka cmf-cqrs)

This is a library to help you to build configurable React App with CQRS pattern.

NPM

Travis CI Quality dependencies devdependencies Codacy Badge

Breaking changes log

Before 1.0, react-cmf-cqrs do NOT follow semver version in releases. You will find a list of breaking changes here.

##Content

This package provides tools to deal with cqrs backend allowing websocket handling :

  • acknowledgement actions
  • ACKDispatcher component
  • Smart Websocket middleware
  • ACK reducer

##How it works

  • to start the websocket with smartWebsocket middleware :
ws = new SmartWebsocket(urlPrefix, {
    onOpen: () => dispatch({ type: ACTION_TYPES.ON_OPEN }),
    onClose: () => dispatch({ type: ACTION_TYPES.ON_CLOSE }),
    onMessage: (messageEvent) => {
        dispatch({ type:onMessage, message:messageEvent });
    },
});

In onMessage event, you should get middleware handlers as well.

  • On the reducer, actions handled :
    • ACK_ADD_CONTEXT : Used to add a new request on stack
    • ACK_RECEIVE_MESSAGE : Used when a message come from the ws
    • ACK_DELETE : Used when you want to delete a handler
0.111.0

7 years ago

0.110.0

7 years ago

0.109.0

7 years ago

0.108.0

7 years ago

0.107.0

7 years ago

0.106.0

7 years ago

0.105.0

7 years ago

0.104.0

7 years ago

0.103.0

7 years ago

0.102.4

7 years ago

0.102.3

7 years ago

0.102.1

7 years ago

0.102.0

7 years ago

0.99.0

7 years ago