koding / websocketproxy

WebSocket reverse proxy handler for Go
http://godoc.org/github.com/koding/websocketproxy
MIT License
427 stars 120 forks source link

Simplify code #13

Closed aviddiviner closed 6 years ago

aviddiviner commented 6 years ago

Well, it turns out *WebsocketProxy is an http.Handler (it has a ServeHTTP method). So really, there's no need for the extra indirection in ProxyHandler. It's easier (and more performant) without wrapping it in the extra http.HandlerFunc.

cihangir commented 6 years ago

Thanks @aviddiviner