ws

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WsCompressionEnabled = false
	WsHandshakeTimeout   = 45   // seconds
	WsBufferSize         = 8192 // 8kiB
	WsRouterEndpoint     = "/ws"
	WsHeaderAgentType    = "X-WS-Kowabunga-Agent"
	WsHeaderAgentId      = "X-WS-Kowabunga-Id"
	WsHeaderAgentApiKey  = "X-WS-Kowabunga-Api-Key"
)

Variables

This section is empty.

Functions

func Dial

func Dial(endpoint, agentType, agentId, agentApiKey string) (*websocket.Conn, error)

func ServerConnectionUpgrade

func ServerConnectionUpgrade(w http.ResponseWriter, r *http.Request) (*websocket.Conn, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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