OpenHausIO / connector

Connector between backend & local network
MIT License
1 stars 2 forks source link

Close WebSocket properly in Worker Thread #21

Closed mStirner closed 1 year ago

mStirner commented 1 year ago

After updating a device, the termination of the worker does not close the WebSocket properly. This resulsts in a 423 error after resting it.

See https://github.com/OpenHausIO/backend/issues/259

mStirner commented 1 year ago

Test if terminating the worker triggers a close event on the backend. Should be not from the definition of the terminating(...) method

Stop all JavaScript execution in the worker thread as soon as possible

mStirner commented 1 year ago

https://stackoverflow.com/a/58456035/5781499