Skip to content

websocket.upgradeReq property is missing or not set in later versions of ws. #1666

@dashanchang

Description

@dashanchang

Hi ws team,

I've been using ws with node.js for a long time. I have noticed the later versions of ws are missing one of the import properties: upgradeReq, causing apps using it to fail.

Adding one line code at line 288 of websocket-server.js would fix it:
ws.upgradeReq = req;

Thanks
Dashan Chang

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