Skip to content

websocket broken connection not handled in live query server #8010

Closed
@pash2048

Description

@pash2048

New Issue Checklist

Issue Description

Parse live query not check broken WebSocket connection and close them and 'websocketTimeout' in 'LiveQueryServerOptions' not have any effect, we need to handle and close broken connection

Steps to reproduce

Start a live query server and then connect to those, for example, if we lose our connection(torn off WIFI or ...) we don't get any event with Parse.Cloud.onLiveQueryEvent and connection still open

Actual Outcome

if we unplug the ethernet cable or turn off mobile data or WIFI nothing happens and the parse server doesn't get it

Expected Outcome

Close connection after websocketTimeout then trigger an event onLiveQueryEvent

Environment

Server

  • Parse Server version: 5.2.1
  • Operating system: ubuntu-desktop 18.04
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local and Parspack cloud provider

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 4.4.14
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): JavaScript
  • SDK version: 3.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions