gin-gonic / gin

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
https://gin-gonic.com/
MIT License
77.93k stars 7.97k forks source link

Whether websocket reverse proxy is supported? #3497

Open fenggolang opened 1 year ago

fenggolang commented 1 year ago

Whether websocket reverse proxy is supported?

whatwewant commented 1 year ago

it is not supported by gin. but you can make gin support with go-zoox/proxy

or it can be used easily in go-zoox/zoox:

see example: https://github.com/go-zoox/examples/blob/master/proxy/main.go

app.Proxy("/ws", "the_websocket_service", cfg)