Skip to content

If server send bad json, Websocket just close connection without any error,reason etc #6848

@drcika

Description

@drcika

Describe the bug

If server send bad json, Websocket just close connection without any error,reason etc
in vanila websocket json throw error

Expected behavior

just report error, do not close connection
but must log error
or put try catch on JSON.parse(message.data)

Reproduction code

No response

Reproduction URL

No response

Version

7.4.0

Environment

No response

Additional context

No response

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