Skip to content

Should not abort connections on beforeunload event #603

@SQReder

Description

@SQReder

You want to:

  • report a bug
  • request a feature

Current behaviour

Polling transport breaks every time after beforeunload triggered, even if page wasn't closed after event have have has handed.

Setup

  • browser: Chrome
  • engine.io version: 1.1.0+

Other information

It should be replaced at least to unload or better pagehide event (which one is good supported - 93%)

We have had got very annoying floating bug with socket.io long-polling, which was stable reproduced with selenium tests in Chrome on Linux host, and all works well on windows host. Sometimes Chrome with no obvious reason want to freeze page, and so beforeunload triggered, so app is broken after that.

Here some related info:
Page lifecycle api:

PageTransitionEvent browsers support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions