Help us shape the future of Go! Take the 2026 Go Developer Survey

websocket

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package websocket carries Bridge's pinned TLS stream over browser WebSockets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, address string) (net.Conn, error)

Dial creates a stream only. The caller must authenticate it with ConnectClient.

func Handler

func Handler(ctx context.Context, b *bridge.Bridge, origins []string) (http.Handler, error)

Handler exposes no admin API. Origins are exact scheme://host values, never wildcard patterns. Clients without Origin still require Bridge authentication.

func ValidateOrigins

func ValidateOrigins(origins []string) error

func ValidateURL

func ValidateURL(address string) error

ValidateURL permits cleartext outer transport only on loopback. Bridge still authenticates and encrypts the inner stream independently of HTTPS proxies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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