Versions in this module Expand all Collapse all v0 v0.0.4 Apr 4, 2024 v0.0.3 Apr 4, 2024 Changes in this version + const OPCODE_BINARY + const OPCODE_CLOSE + const OPCODE_CONTINUATION + const OPCODE_FOR_TEXT + const OPCODE_PING + const OPCODE_PONG + func Run(path string, port string, socketHandler func(ws *Websocket)) + type Connection interface + Close func() error + type Frame struct + Fin byte + Mask []byte + Opcode byte + Payload []byte + PayloadLength int + func (f Frame) Text() string + type Websocket struct + func New(w http.ResponseWriter, r *http.Request) (*Websocket, error) + func (ws *Websocket) Close() error + func (ws *Websocket) Recv() (Frame, error) + func (ws *Websocket) Send(f Frame) error v0.0.2 Apr 4, 2024 v0.0.1 Apr 2, 2024