Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type ExitWithDoingNothing struct + func (e ExitWithDoingNothing) Error() string + type Handler func(w ResponseWriter, r *apistructs.WebsocketRequest) error + type ResponseWriter interface + type Websocket struct + func New() *Websocket + func (ws *Websocket) AfterConnected(handler func(w ResponseWriter)) + func (ws *Websocket) BeforeClose(handler func(w ResponseWriter, err error)) + func (ws *Websocket) Close() error + func (ws *Websocket) Register(type_ string, handler Handler) + func (ws *Websocket) Run() + func (ws *Websocket) Upgrade(w http.ResponseWriter, r *http.Request) error + func (ws *Websocket) Write(p []byte) (n int, err error)