Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Default web socket upgrader to upgrade the incoming connections DefaultWebSocketUpgrader = &websocket.FastHTTPUpgrader{ ReadBufferSize: 1024, WriteBufferSize: 1024, } // Default websocket dialer to establish connections with backends DefaultWebSocketDialer = websocket.DefaultDialer )
Functions ¶
This section is empty.
Types ¶
type ReverseWSProxy ¶
type ReverseWSProxy struct { PrepareRequest func(ctx *fiber.Ctx) error Upgrader *websocket.FastHTTPUpgrader Dialer *websocket.Dialer }
func (*ReverseWSProxy) ProxyWS ¶
func (wsp *ReverseWSProxy) ProxyWS(ctx *fiber.Ctx) (err error)
Click to show internal directories.
Click to hide internal directories.