git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-79-npm / node-redis-pubsub / node-redis-pubsub.js

291 bytesRaw
1'use strict';
2
3var NRP = require('node-redis-pubsub');
4var config = { port: 6379, scope: 'demo' };
5new NRP(config); // eslint-disable-line no-new
6
7process.on('uncaughtException', function (error) {
8 var ok = error.code === 'ECONNREFUSED';
9 if (ok) console.log('ok');
10 process.exit();
11});
12

Built with git-ssb-web