Currenly, I init the client when my app start, if I close the websocket server while the app is still running, executing a request will trigger an error, but I can't find a way to catch it. Neither a $client.call('path').catch(...) or client.onError(...) will be called.
But the console will display these 2 messages:
index.js:176 WebSocket is already in CLOSING or CLOSED state.
Uncaught (in promise) Error: Request timeout request took longer than 5000 ms to resolve
Currenly, I init the client when my app start, if I close the websocket server while the app is still running, executing a request will trigger an error, but I can't find a way to catch it. Neither a
$client.call('path').catch(...)orclient.onError(...)will be called.But the console will display these 2 messages: