Versions in this module Expand all Collapse all v1 v1.6.1 May 30, 2021 Changes in this version + var ErrInvalidFrame = errors.New("invalid frame type") + type Conn interface + LocalAddr func() net.Addr + RemoteAddr func() net.Addr + RemoteHeader func() http.Header + SetReadDeadline func(t time.Time) error + SetWriteDeadline func(t time.Time) error + URL func() url.URL + type ConnParameters struct + PingInterval time.Duration + PingTimeout time.Duration + SID string + Upgrades []string + func ReadConnParameters(r io.Reader) (ConnParameters, error) + func (p ConnParameters) WriteTo(w io.Writer) (int64, error) + type FrameReader interface + NextReader func() (frame.Type, packet.Type, io.ReadCloser, error) + type FrameWriter interface + NextWriter func(ft frame.Type, pt packet.Type) (io.WriteCloser, error) + type Manager struct + func NewManager(transports []Transport) *Manager + func (m *Manager) Get(name string) Transport + func (m *Manager) UpgradeFrom(name string) []string + type Transport interface + Accept func(w http.ResponseWriter, r *http.Request) (Conn, error) + Dial func(u *url.URL, requestHeader http.Header) (Conn, error) + Name func() string