websocket

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeysString

func KeysString(m map[string]struct{}) string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(endpoint, apiKey, secretKey string, topics []string, handler MessageHandler, jsonData bool) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) Connected

func (c *Client) Connected() bool

func (*Client) Subscribe

func (c *Client) Subscribe(topics []string) error

func (*Client) Unsubscribe

func (c *Client) Unsubscribe()

type MessageHandler

type MessageHandler func(message *types.Message)

Jump to

Keyboard shortcuts

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