1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| 'use strict';
|
| const Base = require('sdk-base');
|
| class DefaultEventSource extends Base {
|
| constructor() {
| super();
| // delay emit so that can be listened
| setImmediate(() => this.emit('warn', '[egg-watcher] defaultEventSource watcher will NOT take effect'));
| this.ready(true);
| }
|
| watch() {
| this.emit('warn', '[egg-watcher] using defaultEventSource watcher.watch() does NOTHING');
| }
|
| unwatch() {
| this.emit('warn', '[egg-watcher] using defaultEventSource watcher.unwatch() does NOTHING');
| }
|
| }
|
| module.exports = DefaultEventSource;
|
|