Documentation ¶
Overview ¶
Package websocket implements Websocket transport
Websocket transport implements a HTTP(S) compliable, surveillance proof transport method with plausible deniability.
Index ¶
- Variables
- func Dial(ctx context.Context, dest v2net.Destination) (internet.Connection, error)
- func ListenWS(address v2net.Address, port v2net.Port, options internet.ListenOptions) (internet.Listener, error)
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetConnectionReuse() *ConnectionReuse
- func (c *Config) GetNormailzedPath() string
- func (m *Config) GetPath() string
- func (c *Config) IsConnectionReuse() bool
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- type ConnectionReuse
- type ConnectionWithError
- type Listener
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Dial ¶
func Dial(ctx context.Context, dest v2net.Destination) (internet.Connection, error)
Types ¶
type Config ¶
type Config struct { // Whether or not to reuse WebSocket connections. ConnectionReuse *ConnectionReuse `protobuf:"bytes,1,opt,name=connection_reuse,json=connectionReuse" json:"connection_reuse,omitempty"` // URL path to the WebSocket service. Empty value means root(/). Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` }
func (*Config) GetConnectionReuse ¶
func (m *Config) GetConnectionReuse() *ConnectionReuse
type ConnectionReuse ¶
type ConnectionReuse struct {
Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
}
func (*ConnectionReuse) Descriptor ¶
func (*ConnectionReuse) Descriptor() ([]byte, []int)
func (*ConnectionReuse) GetEnable ¶
func (m *ConnectionReuse) GetEnable() bool
func (*ConnectionReuse) ProtoMessage ¶
func (*ConnectionReuse) ProtoMessage()
func (*ConnectionReuse) Reset ¶
func (m *ConnectionReuse) Reset()
func (*ConnectionReuse) String ¶
func (m *ConnectionReuse) String() string
type ConnectionWithError ¶
type ConnectionWithError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.