mirror of
https://github.com/eggjs/egg.git
synced 2024-12-04 07:14:30 +00:00
18 lines
303 B
JavaScript
18 lines
303 B
JavaScript
'use strict';
|
|
|
|
const client = require('./client');
|
|
|
|
module.exports = agent => {
|
|
agent.startAgent({
|
|
name: 'mock',
|
|
client: client,
|
|
subscribe: function(reg, listener) {
|
|
console.log('agent subscribe', reg);
|
|
},
|
|
});
|
|
|
|
agent.messenger.on('die', () => {
|
|
process.exit(1);
|
|
});
|
|
};
|