Documentation ¶
Index ¶
Constants ¶
View Source
const (
ChunkSize = 0xffff //65535, typical TCP MTU
)
Variables ¶
This section is empty.
Functions ¶
func Host ¶
Host listens for a ws connection, then relays messages bidirectionally over the channels until the context ends. Only one connection is accepted at a time.
func PipeBinaryIgnoreText ¶
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.
Click to show internal directories.
Click to hide internal directories.