mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-30 17:02:49 -05:00
Fix skipping invalid JSON messages
This commit is contained in:
@@ -51,6 +51,7 @@ function initApp({ username, password, baseURL, getInitialState, onMessage }) {
|
|||||||
data = JSON.parse(dataText)
|
data = JSON.parse(dataText)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn('received unexpected ws data:', dataText)
|
console.warn('received unexpected ws data:', dataText)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user