Skip to content

How to handle timeout error ? #348

@mrleblanc101

Description

@mrleblanc101

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions