Open jalmeroth opened 1 year ago
It is because the server message looks like this, which is not parsed into ServerMessage
-type:
{
apiVersion: '1.0.0',
errorMsg: 'toggle mute error: Error: Cannot unmute when already locally and server unmuted'
}
I could resolve the crasher by applying this to WS on-message handler:
const message: ServerMessage = JSON.parse(data.toString())
if (!message.hasOwnProperty("meetingUpdate")) {
console.warn(message)
return
}
...
Hi there 👋,
thanks for this awesome project! I really like the idea. While tinkering around with it, I discovered that the npm process is crashing if you send the same mqtt command twice:
This is probably due to the fact that the current state is not respected.