Skip to content

Conversation

@lifeengines
Copy link

made response header ended up before OnWsConnecting so we can append extra handshake header to response

made response header ended up before OnWsConnecting so we can append extra handshake header to response
@lifeengines
Copy link
Author

some websocket protocol has extra handshake headers,we need deal with append some extra response http headers in PerformServerUpgrade stage,but currentlly netcoreserver don't has a mechanism to do this,so we can adjust SetBody in PerformServerUpgrade to after OnWsConnecting so can be made possible append extra http header in OnWsConnecting event.

@lifeengines lifeengines changed the title Update WebSocket.cs made possible to append extra response http headers in PerformServerUpgrade stage Apr 27, 2024
@stratdev3
Copy link

make sense, it seems to be the perfect answer to #328

stratdev3 added a commit to stratdev3/SimpleW that referenced this pull request Apr 21, 2025
…rmServerUpgrade stage (#31)

PR by [lifeengines](chronoxor/NetCoreServer#297) to fix [bramley-jetcharge
issue](chronoxor/NetCoreServer#328)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants