From b164110c9262b6808843bda7db60d2903878a70b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 14 Jan 2023 16:57:37 +0300 Subject: vnext: disable SSE processing --- vnext/server/middleware/event.js | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'vnext/server/middleware') 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 = []; -- cgit v1.2.3