Versions in this module Expand all Collapse all v1 v1.22.0 May 14, 2024 v1.0.0 May 3, 2022 Changes in this version + type Channel struct + func (c *Channel) Close() + func (c *Channel) Send(op OpCode, data []byte) + func (c *Channel) SetOnClose(callback func()) + type Handler struct + func NewHandler(callback RecievedCallback, readPoolConcurrency int, writePoolConcurrency int) (*Handler, error) + func (h *Handler) CreateChannel(w http.ResponseWriter, r *http.Request) (*Channel, error) + func (h *Handler) UpgradeHandler(w http.ResponseWriter, r *http.Request) + type OpCode ws.OpCode + const OpBinary + const OpText + type RecievedCallback func(c *Channel, op OpCode, data []byte)