npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

redux-autobahn-js

v0.1.2

Published

Autobahn-js middleware for Redux

Downloads

6

Readme

redux-autobahn-js

Objects

redux-autobahn:actions : object

Kind: global namespace

redux-autobahn:actions.openConnection() ⇒ object

Returns a redux action with type OPEN_CONNECTION

Kind: static method of redux-autobahn:actions
Returns: object - redux action

redux-autobahn:actions.closeConnection() ⇒ object

Returns a redux action with type CLOSE_CONNECTION

Kind: static method of redux-autobahn:actions
Returns: object - redux action

redux-autobahn:actions.subscribe(topic) ⇒ object

Returns a redux action with type SUBSCRIBE and the given topic

Kind: static method of redux-autobahn:actions
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | topic | string | The topic being subscribed to. |

redux-autobahn:actions.unsubscribe(subscriptionOrTopic) ⇒ object

Returns a redux action with type UNSUBSCRIBE and the given subscription or topic

Kind: static method of redux-autobahn:actions
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | subscriptionOrTopic | object | string | The subscription or topic being unsubscribed from. |

redux-autobahn:actions.publish(topic, args, kwargs, options) ⇒ object

Returns a redux action with type PUBLISH and the given topic, args, kwargs, and options

Kind: static method of redux-autobahn:actions
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | topic | string | The topic being subscribed to. | | args | Array | An array of arguments. | | kwargs | object | An object of keyword arguments. | | options | object | An object of options. |

redux-autobahn:actions.register(procedure, endpoint, options) ⇒ object

Returns a redux action with type REGISTER and the given procedure, endpoint, and options

Kind: static method of redux-autobahn:actions
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | procedure | string | The procedure name being registered. | | endpoint | function | The endpoint function being registered. | | options | object | An object of options. |

redux-autobahn:actions.unregister(registration) ⇒ object

Returns a redux action with type UNREGISTER and the given registration object

Kind: static method of redux-autobahn:actions
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | registration | object | The registration object. |

redux-autobahn:actions.call(procedure, args, kwargs, options, resultAction, errorAction) ⇒ object

Returns a redux action with type CALL and the given procedure, args, kwargs, and options

Kind: static method of redux-autobahn:actions
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | procedure | string | The procedure name being called. | | args | Array | An array of arguments. | | kwargs | object | An object of keyword arguments. | | options | object | An object of options. | | resultAction | object | (optional) An action to be dispatched on call success. | | errorAction | object | (optional) An action to be dispatched on call error. |

redux-autobahn:middleware : object

Kind: global namespace

redux-autobahn:middleware.connected() ⇒ object

Returns a redux action with type CONNECTED

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

redux-autobahn:middleware.disconnected() ⇒ object

Returns a redux action with type DISCONNECTED

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

redux-autobahn:middleware.connectionOpened(connection) ⇒ object

Returns a redux action with type CONNECTION_OPENED and the given session object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | connection | object | The object for the opened connection. |

redux-autobahn:middleware.connectionClosed(reason, details) ⇒ object

Returns a redux action with type CONNECTION_CLOSED

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | reason | string | reason for disconnection | | details | object | disconnect details |

redux-autobahn:middleware.subscribed(subscription) ⇒ object

Returns a redux action with type SUBSCRIBED and the given subscription object and it's topic

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | subscription | object | The subscription object for the topic that was subscribed to. |

redux-autobahn:middleware.subscribeError(error) ⇒ object

Returns a redux action with type SUBSCRIBE_ERROR and the given subscription error object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | error | object | The error that occurred while subscribing. |

redux-autobahn:middleware.unsubscribed(subscription) ⇒ object

Returns a redux action with type UNSUBSCRIBED and the given subscription object and it's topic

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | subscription | object | The subscription object for the topic that was unsubscribed from. |

redux-autobahn:middleware.unsubscribeError(error) ⇒ object

Returns a redux action with type UNSUBSCRIBE_ERROR and the given unsubscription error object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | error | object | The error that occurred while unsubscribing. |

redux-autobahn:middleware.published(publication, topic, args, kwargs, options) ⇒ object

Returns a redux action with type PUBLISHED and the given publication, topic, args, kwargs, and options

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | publication | string | The publication being published to. | | topic | string | The topic being published to. | | args | Array | An array of arguments. | | kwargs | object | An object of keyword arguments. | | options | object | An object of options. |

redux-autobahn:middleware.publishError(error) ⇒ object

Returns a redux action with type PUBLISH_ERROR and the given publish error object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | error | object | The error that occurred while publishing. |

redux-autobahn:middleware.event(topic, args, kwargs, details) ⇒ object

Returns a redux action with type EVENT and the given topic, args, kwargs, and details

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | topic | string | The topic being published to. | | args | Array | An array of arguments. | | kwargs | object | An object of keyword arguments. | | details | object | An object of event details. |

redux-autobahn:middleware.registered(registration) ⇒ object

Returns a redux action with type REGISTERED and the given registration object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | registration | object | The registration object being registered to. |

redux-autobahn:middleware.registerError(error) ⇒ object

Returns a redux action with type REGISTER_ERROR and the given register error object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | error | object | The error that occurred while registering. |

redux-autobahn:middleware.unregistered(registration) ⇒ object

Returns a redux action with type UNREGISTERED and the given registration object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | registration | object | The registration object being unregistered from. |

redux-autobahn:middleware.unregisterError(error) ⇒ object

Returns a redux action with type UNREGISTER_ERROR and the given unregister error object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | error | object | The error that occurred while unregistering. |

redux-autobahn:middleware.callError(error) ⇒ object

Returns a redux action with type CALL_ERROR and the given call error object

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | error | object | The error that occurred while calling. |

redux-autobahn:middleware.result(procedure, args, kwargs, results, options) ⇒ object

Returns a redux action with type RESULT and the given result value

Kind: static method of redux-autobahn:middleware
Returns: object - redux action

| Param | Type | Description | | --- | --- | --- | | procedure | object | Procedure that was called | | args | object | Arguments with which procedure was called | | kwargs | object | Arguments with which procedure was called | | results | object | Call results | | options | object | Options |

redux-autobahn:middleware.isConnected(connection) ⇒ boolean

Returns a boolean that represents if the session for the connection exists and is open, therefore it is connected

Kind: static method of redux-autobahn:middleware
Returns: boolean - returns true if the session for the connection exists and is open

| Param | Type | Description | | --- | --- | --- | | connection | object | the connection object |

redux-autobahn:middleware.getSubscription(action) ⇒ object

Returns the subscription from the action

Kind: static method of redux-autobahn:middleware
Returns: object - the subscription on the action

| Param | Type | Description | | --- | --- | --- | | action | object | the redux action |

redux-autobahn:middleware.handleAction(connection, dispatch, next, action)

Dispatches actions based on action types

Kind: static method of redux-autobahn:middleware

| Param | Type | Description | | --- | --- | --- | | connection | object | the connection object | | dispatch | function | the dispatch function | | next | function | the next function | | action | object | the redux action |

redux-autobahn:middleware.assert(assertion, message)

Throws an error if the assertion is falsy

Kind: static method of redux-autobahn:middleware
Throws:

  • Error throws an error with the given message if the assertion is falsy

| Param | Type | Description | | --- | --- | --- | | assertion | object | the assertion expression | | message | object | the assertion message |

redux-autobahn:middleware.setConnection(newConnection)

Sets the passed connection for the middleware that dispatches opened and closed connection actions and handles actions

Kind: static method of redux-autobahn:middleware

| Param | Type | Description | | --- | --- | --- | | newConnection | Connection | the connection object |

redux-autobahn:middleware.closeConnection(reason, message)

Closes the current autobahn connection

Kind: static method of redux-autobahn:middleware

| Param | Type | Description | | --- | --- | --- | | reason | string | (optional) a WAMP URI providing a closing reason to the server side (e.g. 'com.myapp.close.signout'). default is wamp.goodbye.normal | | message | string | human-readable closing message |

redux-autobahn:reducer : object

Kind: global namespace

redux-autobahn:reducer.connection(state, action) ⇒ object

Kind: static method of redux-autobahn:reducer
Returns: object - the new state

| Param | Type | Description | | --- | --- | --- | | state | object | the state | | action | object | redux action |

redux-autobahn:reducer.session(state, action) ⇒ object

Kind: static method of redux-autobahn:reducer
Returns: object - the new state

| Param | Type | Description | | --- | --- | --- | | state | object | the state | | action | object | redux action |

redux-autobahn:reducer.subscriptions(state, action) ⇒ object

Kind: static method of redux-autobahn:reducer
Returns: object - the new state

| Param | Type | Description | | --- | --- | --- | | state | object | the state | | action | object | redux action |

redux-autobahn:reducer.registrations(state, action) ⇒ object

Kind: static method of redux-autobahn:reducer
Returns: object - the new state

| Param | Type | Description | | --- | --- | --- | | state | object | the state | | action | object | redux action |

redux-autobahn:types : object

Kind: global namespace

redux-autobahn:types.CONNECTED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.DISCONNECTED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.OPEN_CONNECTION : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.CLOSE_CONNECTION : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.CONNECTION_OPENED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.CONNECTION_CLOSED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.SUBSCRIBE : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.SUBSCRIBED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.SUBSCRIBE_ERROR : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.UNSUBSCRIBE : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.UNSUBSCRIBED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.UNSUBSCRIBE_ERROR : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.PUBLISH : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.PUBLISHED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.PUBLISH_ERROR : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.EVENT : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.REGISTER : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.REGISTERED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.REGISTER_ERROR : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.UNREGISTER : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.UNREGISTERED : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.UNREGISTER_ERROR : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.CALL : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.CALL_ERROR : string

Kind: static constant of redux-autobahn:types

redux-autobahn:types.RESULT : string

Kind: static constant of redux-autobahn:types