Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + type WSShell struct + CloseChan chan bool + Conn *websocket.Conn + ConnId string + Header http.Header + LastPing time.Time + LastRecv time.Time + NumPings int + OpenTime time.Time + Query url.Values + ReadChan chan []byte + RemoteAddr string + WriteChan chan []byte + func StartWS(w http.ResponseWriter, r *http.Request) (*WSShell, error) + func (ws *WSShell) IsClosed() bool + func (ws *WSShell) NonBlockingWrite(data []byte) bool + func (ws *WSShell) ReadPump() + func (ws *WSShell) WriteJson(val interface{}) error + func (ws *WSShell) WritePing() error + func (ws *WSShell) WritePump()