ws

package
v0.0.0-...-1c4d217 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL