Skip to content

How would I handle an error when a client disconnects? #49

@nitroxplunge

Description

@nitroxplunge

I have a node.js server that interfaces with a website, and when I close a tab the server crashes due to an "Unhandled 'error' event"

I assume I need to add an error handler after .listen() but I cant figure out how to do it.

I know this is a noob question but I'm still learning about websockets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions