Versions in this module Expand all Collapse all v0 v0.0.3 Nov 10, 2023 Changes in this version + func ReadMessage(conn *net.Conn) (payload []byte, err error, connectionClosed bool) v0.0.2 Nov 11, 2023 Changes in this version + var ErrHeaderLengthMSB = fmt.Errorf("header error: the most significant bit must be 0") + var ErrHeaderLengthUnexpected = fmt.Errorf("header error: unexpected payloadBuffer length bits") + func HandlePayload(conn *net.Conn, length int) ([]byte, error) + func HandlePing(conn *net.Conn) error + func ReadHeader(r io.Reader) (h ws.Header, err error) + func WriteHeader(w io.Writer, h ws.Header) error