Skip to content

Exception in Server-Side Event - Disconnect Not Detected #2615

Closed
@kaansoral

Description

@kaansoral

I decided to let clients cause exceptions in server events, otherwise it's almost impossible to cover all exception scenarios - this is all great in practice, exceptions are caught by socket.io, the code is simpler

However, when an exception occurs in the server-side event handler, the client is disconnected, yet the client-side "disconnect" event isn't triggered

I want the client side "disconnect" to trigger whenever the connection is severed

Is it possible to remedy/fix this issue, I'm guessing this is a long-standing issue with ties to #2285

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