Prerequisites
馃殌 Feature Proposal
It seems that it could not be possible to manage the upgrade event in custom way, without re-writing the entire logic.
The cause seems to be the Symbols used to store headers and socketRef into the rawReq object (kWs, kWsHead)
Motivation
Code re-usability.
In my case I have to add custom headers on HTTP Upgrade response #204 (ws library under the hood, supports it).
Example
Replace Symbol usage with simple string keys or expose some properties to manage the key name attribute.
Prerequisites
馃殌 Feature Proposal
It seems that it could not be possible to manage the upgrade event in custom way, without re-writing the entire logic.
The cause seems to be the Symbols used to store headers and socketRef into the
rawReqobject (kWs, kWsHead)Motivation
Code re-usability.
In my case I have to add custom headers on HTTP Upgrade response #204 (
wslibrary under the hood, supports it).Example
Replace Symbol usage with simple string keys or expose some properties to manage the key name attribute.