FlowFuse / device-agent

An agent to run FlowFuse managed instances of Node-RED on devices
Apache License 2.0
15 stars 8 forks source link

Fix WS readystate crash #221

Closed Steve-Mcl closed 7 months ago

Steve-Mcl commented 7 months ago

fixes #183

Description

  1. Ensure readyState is OPEN before attempting a send
  2. Provide a small amount of grace if an unexpected packet arrives (improves reconnection success without spamming logs and unnecessarily disconnecting the WS)

Related Issue(s)

Checklist

Labels