We have encountered unhandled promise rejection warnings in ReactNative (0.63.4) whenever the anycable websocket is down.
From our investigation, it's because the reconnectNow() promise was not handled the rejection case.
Warnings happened after every scheduleReconnect()
With the proposing fix, it will print out the log instead of raising RN unhandled rejection warnings.
We have encountered unhandled promise rejection warnings in ReactNative (0.63.4) whenever the anycable websocket is down. From our investigation, it's because the reconnectNow() promise was not handled the rejection case.
Warnings happened after every
scheduleReconnect()
With the proposing fix, it will print out the log instead of raising RN unhandled rejection warnings.