Versions in this module Expand all Collapse all v0 v0.1.0 Apr 9, 2024 Changes in this version + type WSCtx struct + func GetCtx(label string) *WSCtx + func NewWSCtx(conn *websocket.Conn) *WSCtx + func (ws *WSCtx) Read(p []byte) (n int, err error) + func (ws *WSCtx) Receive(f func(messageType int, p []byte)) + func (ws *WSCtx) Send(o any) + func (ws *WSCtx) SetSerialize(serialize def.Serialize) + func (ws *WSCtx) SetWsLabel(label string) *WSCtx + func (ws *WSCtx) Write(p []byte) (n int, err error) + func (ws *WSCtx) WriteJSON(o any)