Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
func DefaultConnector ¶
DefaultWebsocketConnector returns a new websocket as the default connection.
type Message ¶
type Message struct { Type string `json:"type"` Products []string `json:"product_ids"` Channels []Channel `json:"channels"` }
func NewProductsMessage ¶
NewWebsocket will return a new websocket subscription that can be used to get a feed of real-time market data.
func (*Message) Subscribe ¶
Subscribe will use the websocket message to subscribe to a websocket connections, returning that connection or any errors that occurred attemptting to make it.
func (*Message) Unsubscribe ¶
Unsubscribe will use the websocket message to unsubscribe to a connection.
Click to show internal directories.
Click to hide internal directories.