aboutsummaryrefslogtreecommitdiff
path: root/vnext/server
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server')
-rw-r--r--vnext/server/middleware/event.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/vnext/server/middleware/event.js b/vnext/server/middleware/event.js
index deb974ee..838ea8b1 100644
--- a/vnext/server/middleware/event.js
+++ b/vnext/server/middleware/event.js
@@ -5,23 +5,6 @@ import { subscribers } from '../http';
import { sendNotification, buildNotification } from '../sender';
import debug from 'debug';
var log = debug('event');
-import config from 'config';
-import EventSource from 'eventsource';
-
-const es = new EventSource(config.get('service.baseURL')+ '/api/events');
-es.addEventListener('msg', (msg) => {
- log(msg.data);
- processMessageEvent(JSON.parse(msg.data));
-});
-es.addEventListener('read', (msg) => {
- log(msg);
-});
-es.addEventListener('open', () => {
- log('online');
-});
-es.onerror = (evt) => {
- log(`err: ${JSON.stringify(evt)}`);
-};
/** @type {number[]} */
const allSandboxIds = [];