Documentation ¶
Index ¶
- func Dial(protocol, host string, port int, path string) (*websocket.Conn, error)
- type WebSocket
- func (t *WebSocket) Close() error
- func (t *WebSocket) Closed() bool
- func (t *WebSocket) Expired() bool
- func (t *WebSocket) FD() uint64
- func (t *WebSocket) Get(key int64) (any, bool)
- func (t *WebSocket) Read(hLen, bLen, bLenOffset int) ([]byte, error)
- func (t *WebSocket) RemoteIp() string
- func (t *WebSocket) SQueue() <-chan bool
- func (t *WebSocket) Send(pack connection.IPacket) error
- func (t *WebSocket) SendBytes(buf []byte) error
- func (t *WebSocket) Set(key int64, val any)
- func (t *WebSocket) WQueue() <-chan []byte
- func (t *WebSocket) Write(pack []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.