2018-09-22 12:28:50 +00:00
|
|
|
'use strict'
|
|
|
|
|
2018-10-06 11:48:00 +00:00
|
|
|
const { EventEmitter } = require('events')
|
2016-01-12 02:40:23 +00:00
|
|
|
|
2016-12-01 22:43:30 +00:00
|
|
|
const emitter = new EventEmitter()
|
2016-07-24 12:08:25 +00:00
|
|
|
|
|
|
|
// Do not throw exception when channel name is "error".
|
2016-12-01 22:43:30 +00:00
|
|
|
emitter.on('error', () => {})
|
|
|
|
|
|
|
|
module.exports = emitter
|