package
0.0.0-20200122233423-62801f1d34cf
Repository: https://github.com/vishvananda/pkg.git
Documentation: pkg.go.dev

# Functions

HijackIfPossible calls Hijack() on the given http.ResponseWriter if it implements http.Hijacker interface, which is required for net/http/httputil/reverseproxy to handle connection upgrade/switching protocol.
NewDurableConnection creates a new websocket connection, that passes incoming messages to the given message channel.
NewDurableSendingConnection creates a new websocket connection that can only send messages to the endpoint it connects to.

# Variables

ErrConnectionNotEstablished is returned by methods that need a connection but no connection is already created.

# Structs

ManagedConnection represents a websocket connection.