Documentation
¶
Index ¶
- type ConnectType
- type WsClient
- func (ws *WsClient) Close()
- func (ws *WsClient) Dial(typ ConnectType) error
- func (ws *WsClient) SetPingInterval(t time.Duration)
- func (ws *WsClient) SetRecvPingTime(t time.Time)
- func (ws *WsClient) SetRecvPongTime(t time.Time)
- func (ws *WsClient) SetpPongTimeout(t time.Duration)
- func (ws *WsClient) WatchClosed()
- func (ws *WsClient) Write(req interface{}) error
- func (ws *WsClient) WriteBytes(bs []byte)
- type WsImp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WsClient ¶
type WsClient struct {
// contains filtered or unexported fields
}
func NewWsClient ¶
func NewWsClient(url string, imp WsImp, exchangeType constant.ExchangeType, pingInterval, pongTimeout time.Duration) *WsClient
NewWsClient 新建Ws客户端
func (*WsClient) Dial ¶
func (ws *WsClient) Dial(typ ConnectType) error
func (*WsClient) SetPingInterval ¶
func (*WsClient) SetRecvPingTime ¶
func (*WsClient) SetRecvPongTime ¶
func (*WsClient) SetpPongTimeout ¶
func (*WsClient) WriteBytes ¶
Click to show internal directories.
Click to hide internal directories.