![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
ocbesbn-redis-events
Advanced tools
Module simplifying access to the publish/subscribe system provided by Redis.
This module provides simplified access to the publish/subscribe system provided by Redis. To have a look at the full API, please visit the related wiki page.
First got to your local code directory and run:
npm install ocbesbn-redis-events
To go with the minimum setup, you need to have access to a running Consul server to get your endpoint configuration and a Redis server that is registered in consul.
If all this is set up, go to you code and add the following command:
const RedisEvents = require('ocbesbn-redis-events');
var events = new RedisEvents({ consul : { host : '{{your-consul-host}}' } });
// Subscribe to a channel by name.
events.subscribe('my-channel', console.log).then(() => events.emit('Hello, world!', 'my-channel'));
// - OR -
// Subscribe to a channel by pattern.
events.subscribe('my-channel.*', console.log).then(() => events.emit('Hello, world!', 'my-channel.sub-channel'));
// Close all Redis connections.
events.disposeAll();
The default configuration object provides hints about what the module's standard behavior is like.
{
serializer : JSON.stringify,
parser : JSON.parse,
defaultEmitChannel : null,
consul : {
host : 'consul',
redisServiceName : 'redis',
redisPasswordKey : 'redis/password'
},
context : {
}
}
FAQs
Module simplifying access to the publish/subscribe system provided by Redis.
The npm package ocbesbn-redis-events receives a total of 3 weekly downloads. As such, ocbesbn-redis-events popularity was classified as not popular.
We found that ocbesbn-redis-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.