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 ¶
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.
Click to show internal directories.
Click to hide internal directories.