Node WebSocket doesn't know if it is connected or not without sending some data. Even after sending data it takes time for error to be thrown. Find a mechanism to detect network changes on OS level and perform a reconnect whenever there is a problem. This problem is specially prevalent with the printer package, which might not work when the network goes down and then comes back again.
Node WebSocket doesn't know if it is connected or not without sending some data. Even after sending data it takes time for error to be thrown. Find a mechanism to detect network changes on OS level and perform a reconnect whenever there is a problem. This problem is specially prevalent with the printer package, which might not work when the network goes down and then comes back again.