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

ws

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChunkSize = 0xffff //65535, typical TCP MTU
)

Variables

This section is empty.

Functions

func Client

func Client(ctx context.Context, listen int, target string)

Client listens for TCP connections and makes a client connection to a remote ws server

func Host

func Host(ctx context.Context, listen int, target string)

func PipeBinaryIgnoreText

func PipeBinaryIgnoreText(ctx context.Context, tconn net.Conn, wconn *websocket.Conn)

PipeBinaryIgnoreText relays binary data between net.Conn and websocket.Conn pass websocket.Conn with pointer due to mutex Use of NextReader/Writer modified from https://github.com/hazaelsan/ssh-relay/blob/master/session/corprelay/corprelay.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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