openresty / lua-resty-websocket

WebSocket support for the ngx_lua module (and OpenResty)
508 stars 106 forks source link

feature: custom sec-websocket-key in client #86

Closed flrgh closed 6 months ago

flrgh commented 6 months ago

This gives the caller the ability to explicitly set the value of the Sec-WebSocket-Key header instead of having it generated randomly.

This is useful when an OpenResty application is used for proxying WebSocket traffic with the requirement of maintaining a high degree of transparency.