Documentation
¶
Overview ¶
Package websocket implements bitwire's binary envelope carrier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint owns one WebSocket and implements the shared interface directly.
func (*Endpoint) Termination ¶
func (e *Endpoint) Termination() wire.Termination
type Options ¶
type Options struct {
core.PairOptions
CloseTimeout time.Duration
HandshakeTimeout time.Duration
HTTPClient *http.Client
Header http.Header
OriginPatterns []string
Authorize func(*http.Request) bool
Path string
}
Options configure host effects and finite resource limits, never service semantics.