upgrade
hook runs even on non-websocket upgrade requests
#120
Labels
documentation
Improvements or additions to documentation
Describe the change
Currently, the
upgrade
hook runs for any upgrade request, even non-websocket ones, but returns400 Invalid Upgrade header
afterwards ifUpgrade: websocket
isn't present. This is because the Node adapter documentation suggests attaching the upgrade handler such as below:Ideally, the crossws
upgrade
hook only runs if the headerUpgrade: websocket
exists since theupgrade
hook has probably been programmed with only websocket upgrade requests in mind.Alternatively, we could change the documentation to suggest handling this case ourselves (not so ideal):
URLs
No response
Additional information
The text was updated successfully, but these errors were encountered: