Skip to content

readyState bug while sending data from server #23

Closed
@itsfuad

Description

@itsfuad

Current implementation of socketio doesn't have if (this.writable && this.readyState === "open") check before sending the data. This causes server crash.

Screenshot 2024-08-27 192747

Because the code was on the Render cloud, I did not found any way to reproduce it on my pc. Thus by adding this.readyState === "open" check, the issue was fixed.

I pulled a request with the fix.

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