Skip to content

WebSocket remains open when Application is reloaded in dev #26087

Closed
@thheller

Description

@thheller

During development an open WebSocket connection is not automatically closed when the App is reloaded. I have only tested with Android and I'm told it properly disconnects on iOS.

The WebSocket even keeps responding to PING requests.

React Native version:

react-native@0.60.4
System:
    OS: Windows 10
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 16.22 GB / 31.93 GB
  Binaries:
    Node: 12.7.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.3.2 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.7.0 - C:\Program Files\nodejs\npm.CMD
  SDKs:
    Android SDK:
      Android NDK: 20.0.5594570
  IDEs:
    Android Studio: Version  3.4.0.0 AI-183.6156.11.34.5692245

Steps To Reproduce

  1. Open WebSocket in Application code
  2. Reload App, Connection remains open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions