omjadas / hudsucker

Intercepting HTTP/S proxy
https://crates.io/crates/hudsucker
Apache License 2.0
205 stars 34 forks source link

`WebSocketContext` is wrong in `WebSocketHandler` #112

Closed Xerxes-2 closed 4 months ago

Xerxes-2 commented 4 months ago

Actually, I found that WebSocketContext::ClientToServer is server to client, and vice versa. Or perhaps I misunderstood the meaning.

omjadas commented 4 months ago

It appears you are correct. I have pushed a fix to main and will do a release in the coming days.

omjadas commented 3 months ago

Fixed in v0.22.0. Thanks for reporting this.