Skip to content

No way to access connection rejection promise when auto retry after disconnect in provider #529

@deeg

Description

@deeg

Description
When Provider tries re-connecting after a disconnection, if there is an error connecting and max tries are reached, no programatic way to tell this is finished and take additional action.

The rejection promise is not being handled or sent outside of the provider in anyway.

Steps to reproduce the bug
Steps to reproduce the behavior:

  1. Be using HP Provider
  2. Go offline (Turn WIFI off)
  3. Come back online (Turn WIFI on)
  4. HP Provider tries to re-connect
  5. After max amount rejection promise is swallowed and user not able to determine retry is over

Expected behavior
There is some how access to promise rejection of connect so user knows when retries are over and can take additional action

Screenshot, video, or GIF
This is the code where connect is called and rejection promise not handled:

Environment?

  • operating system: Mac
  • browser: Chrome
  • mobile/desktop: Desktop
  • hocuspocus version: Provider 1.0.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions