Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWriteChanFull = errors.New("writeToClient chan full")
)
Functions ¶
func CloseAndDelete ¶
func CloseAndDelete(key string)
func LoadAllConn ¶
func LoadAllConn() chan *WebsocketConn
Types ¶
type WebsocketConn ¶
type WebsocketConn struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(key string) *WebsocketConn
func (*WebsocketConn) AddCloseAction ¶
func (w *WebsocketConn) AddCloseAction(f func() error)
func (*WebsocketConn) AddPingAction ¶
func (w *WebsocketConn) AddPingAction(f func() error)
func (*WebsocketConn) Close ¶
func (w *WebsocketConn) Close() error
func (*WebsocketConn) Err ¶
func (w *WebsocketConn) Err() error
func (*WebsocketConn) Key ¶
func (w *WebsocketConn) Key() string
func (*WebsocketConn) Write ¶
func (w *WebsocketConn) Write(data []byte) error
Click to show internal directories.
Click to hide internal directories.