wsproxy

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Overview

Package wsproxy bridges a websocket to a plain TCP connection, the server half of `stackr forward`. Same shape as wsterm, but with a socket on the far side instead of a docker exec TTY, and no control messages: every frame is opaque protocol traffic (postgres wire, HTTP, whatever the tile speaks).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(c echo.Context, conn net.Conn) error

Serve upgrades the request and pipes it to conn until either side closes. conn is closed on return.

Dial before calling: once the response is upgraded there is no way to report a failure as an HTTP status, so "container not running" and "connection refused" must both be decided by the caller first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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