Versions in this module Expand all Collapse all v0 v0.0.1 Aug 2, 2026 Changes in this version + var ErrConnClosed = errors.New("wsconn: connection closed") + type Conn struct + func Accept(w http.ResponseWriter, r *http.Request) (*Conn, error) + func Dial(ctx context.Context, urlStr string) (*Conn, error) + func (c *Conn) Close(code StatusCode, reason string) error + func (c *Conn) Read(ctx context.Context) ([]byte, error) + func (c *Conn) Write(ctx context.Context, data []byte) error + type StatusCode uint16 + const StatusAbnormalClosure + const StatusNormalClosure