Removed event.type from SSE, as it was causing the browser to hang.

Needs more investigation, but for now, back to the simple message format
This commit is contained in:
Deluan
2021-02-04 12:34:27 -05:00
parent 77fc4841e4
commit 7adacbac0d
4 changed files with 31 additions and 31 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
export const EVENT_SCAN_STATUS = 'scanStatus'
export const EVENT_SERVER_START = 'serverStart'
export const processEvent = (type, event) => {
const data = JSON.parse(event)
export const processEvent = (type, data) => {
return {
type,
data: data,