Documentation ¶
Overview ¶
Package websocket implements Websocket transport
Websocket transport implements an HTTP(S) compliable, surveillance proof transport method with plausible deniability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(ctx context.Context, dest net.Destination) (internet.Connection, error)
Dial dials a WebSocket connection to the given destination.
Types ¶
type Config ¶
type Config struct { // URL path to the WebSocket service. Empty value means root(/). Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` Header []*Header `protobuf:"bytes,3,rep,name=header" json:"header,omitempty"` }
func (*Config) Descriptor ¶
func (*Config) GetNormalizedPath ¶ added in v3.17.1
func (*Config) GetRequestHeader ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
type Header ¶
type Header struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*Header) Descriptor ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.