Documentation ¶
Index ¶
- type WsConn
- func (w *WsConn) AsyncWrite(data []byte)
- func (w *WsConn) BytesReader(buf []byte) ([]byte, int, bool)
- func (w *WsConn) Close() error
- func (w *WsConn) ConnectTime() int64
- func (w *WsConn) DecodeFrame() (bool, error)
- func (w *WsConn) DeviceId() int64
- func (w *WsConn) DeviceType() uint8
- func (w *WsConn) IsAuth() bool
- func (w *WsConn) LocalAddr() net.Addr
- func (w *WsConn) RemoteAddr() net.Addr
- func (w *WsConn) SetAuth()
- func (w *WsConn) SetDeviceId(deviceId int64)
- func (w *WsConn) SetDeviceType(deviceType uint8)
- func (w *WsConn) SetUserId(uid int64)
- func (w *WsConn) TryUpgrade() (bool, error)
- func (w *WsConn) UserId() int64
- func (w *WsConn) Write(data []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WsConn ¶
type WsConn struct {
// contains filtered or unexported fields
}
func (*WsConn) AsyncWrite ¶
func (*WsConn) ConnectTime ¶
func (*WsConn) DecodeFrame ¶
func (*WsConn) DeviceType ¶
func (*WsConn) RemoteAddr ¶
func (*WsConn) SetDeviceId ¶
func (*WsConn) SetDeviceType ¶
func (*WsConn) TryUpgrade ¶
TryUpgrade 尝试升级 bool: 升级是否完成 err: 升级发生错误
Click to show internal directories.
Click to hide internal directories.