0.11.2 • Published 6 years ago
pernilongo-plugin v0.11.2
Pernilongo
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
6 years ago
0.11.1
6 years ago
0.11.0
6 years ago
0.9.4
6 years ago
0.10.10
7 years ago
0.10.9
7 years ago
0.10.8
7 years ago
0.10.7
7 years ago
0.10.6
7 years ago
0.10.5
7 years ago
0.10.4
7 years ago
0.10.3
7 years ago
0.10.2
7 years ago
0.10.1
7 years ago
0.10.0
7 years ago
0.9.3
8 years ago
0.9.2
8 years ago
0.9.1
8 years ago
0.9.0
8 years ago
0.8.1
8 years ago
0.8.0
8 years ago
0.7.0
9 years ago
0.6.1
9 years ago
0.6.0
9 years ago
0.5.2
9 years ago
0.5.1
9 years ago
0.5.0
9 years ago