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

pernilongo-plugin

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pernilongo-plugin

A pomelo plugin that talks to redis for registering, authorizing and unauthorizing users in rooms/topics of a mosquitto server

latest
Source
npmnpm
Version
0.11.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Pernilongo

Build Status

Example Usage

Make pomelo use the component:

var pernilongo = require('pernilongo-plugin')

...
...

app.configure('production|development', 'connector', function(){
  app.set('connectorConfig',
    ...
    ...
    app.use(pernilongo, {
      pernilongo: {
        redisUrl: "//localhost:6379"
      }
    })
    ...
    ...
})

Then use the component like:

var Handler = function(app) {
  ...
  this.pernilongo = this.app.get('pernilongo')
}

Handler.prototype.registerPlayer = function(msg, session, next) {
  logger.debug('registering player ' + msg.user)
  this.pernilongo.registerPlayer(msg.user, msg.pass).then( res => {
    return next(null, 'player registered!')
  }).catch(e => {
    return next(new Error('failed to register player'))
  })
}

Keywords

pomelo

FAQs

Package last updated on 10 Apr 2019

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