elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.1k forks source link

Can you intercept websocket request and response ? #485

Open breezemight opened 2 years ago

breezemight commented 2 years ago

Is this possible to do something like proxy.OnRequest() for websocket at this moment?

amazingjyuq commented 1 year ago

needs to configuration a websocket listener, you can take a look at goproxy.AddwebsocketHandler