ws

package
v0.0.0-...-2ee972e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitgetWsClient

type BitgetWsClient struct {
	NeedLogin bool
	// contains filtered or unexported fields
}

func (*BitgetWsClient) Close

func (p *BitgetWsClient) Close()

func (*BitgetWsClient) Connect

func (p *BitgetWsClient) Connect() *BitgetWsClient

func (*BitgetWsClient) Init

func (p *BitgetWsClient) Init(needLogin bool, listener common.OnReceive, errorListener common.OnReceive) *BitgetWsClient

func (*BitgetWsClient) SendMessage

func (p *BitgetWsClient) SendMessage(msg string)

func (*BitgetWsClient) SendMessageByType

func (p *BitgetWsClient) SendMessageByType(req model.WsBaseReq)

func (*BitgetWsClient) Subscribe

func (p *BitgetWsClient) Subscribe(list []model.SubscribeReq, listener common.OnReceive)

func (*BitgetWsClient) SubscribeDef

func (p *BitgetWsClient) SubscribeDef(list []model.SubscribeReq)

func (*BitgetWsClient) UnSubscribe

func (p *BitgetWsClient) UnSubscribe(list []model.SubscribeReq)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL