wsproxy

package
v0.2.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransformConn

type TransformConn struct {
	// contains filtered or unexported fields
}

TransformConn 在 WebSocket 升级后的双向连接上做“上行脱敏、下行还原”。 当前实现只处理未压缩的文本消息;控制帧、二进制帧和带 RSV 位的数据帧全部透传。

func NewTransformConn

func NewTransformConn(conn io.ReadWriteCloser, redactor redact.Redactor, restorer *restore.Engine) *TransformConn

func (*TransformConn) Close

func (c *TransformConn) Close() error

func (*TransformConn) Read

func (c *TransformConn) Read(p []byte) (int, error)

func (*TransformConn) Write

func (c *TransformConn) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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