Versions in this module Expand all Collapse all v1 v1.1.1 Nov 25, 2024 v0 v0.2.21 Nov 25, 2024 Changes in this version + type Frame struct + Data io.Reader + Header FrameHeader + func (fr *Frame) ReadFrom(r io.Reader) (n int64, err error) + func (fr *Frame) WriteTo(w io.Writer) (n int64, err error) + type FrameHeader struct + Fin bool + MaskKey uint32 + Masked bool + OpCode OpCode + PayloadLength int64 + Rsv1 bool + Rsv2 bool + Rsv3 bool + func (h *FrameHeader) ReadFrom(r io.Reader) (n int64, err error) + func (h *FrameHeader) WriteTo(w io.Writer) (n int64, err error) + func (h FrameHeader) Length() int + type OpCode int + const OpBinary + const OpClose + const OpContinuation + const OpPing + const OpPong + const OpText + type WebsocketConn interface + ReadMessage func() (int, []byte, error) + WriteMessage func(int, []byte) error + func Conn(conn *websocket.Conn) WebsocketConn + func ConnWithClientAddr(conn *websocket.Conn, clientAddr net.Addr) WebsocketConn