Proxying WebSocket connections in Go

Golang&rsquo;s net/http package provides built-in support for http_proxy and https_proxy . This is awesome when developing apps locally, because one can use a tool like Proxyman to watch the traffic. In a side project, I needed to use a WebSocket client. I used github.com/gobwas/ws and while proxy is not supported out of the box, it was very easy to add using golang.org/x/net/proxy which supports…