0.11.2 • Published 5 years ago

pernilongo-plugin v0.11.2

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

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'))
  })
}
0.11.2

5 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.9.4

5 years ago

0.10.10

6 years ago

0.10.9

6 years ago

0.10.8

6 years ago

0.10.7

6 years ago

0.10.6

6 years ago

0.10.5

6 years ago

0.10.4

6 years ago

0.10.3

6 years ago

0.10.2

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago