aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-14 16:57:37 +0300
committerGravatar Vitaly Takmazov2023-01-14 17:04:37 +0300
commitb164110c9262b6808843bda7db60d2903878a70b (patch)
tree26624078949eea6069d9cc42c3012261e92e0b3b /vnext/server/middleware
parent23a41aebadbe13e8992856c6be84ce6d01de0175 (diff)
vnext: disable SSE processing
Diffstat (limited to 'vnext/server/middleware')
-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 = [];