Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Default TCP dialer DefaultTcpDialer = &fasthttp.TCPDialer{Concurrency: 1000} // Default web socket upgrader to upgrade the incoming connections DefaultWebSocketUpgrader = &websocket.FastHTTPUpgrader{ ReadBufferSize: 1024, WriteBufferSize: 1024, } )
Functions ¶
This section is empty.
Types ¶
type TcpToWSProxy ¶
type TcpToWSProxy struct { PrepareRequest func(ctx *fiber.Ctx) error TcpDialer *fasthttp.TCPDialer Upgrader *websocket.FastHTTPUpgrader }
func (*TcpToWSProxy) ProxyTcpToWS ¶
func (p *TcpToWSProxy) ProxyTcpToWS(ctx *fiber.Ctx) (err error)
Click to show internal directories.
Click to hide internal directories.