package
3.0.6
Repository: https://github.com/decred/dcrdata.git
Documentation: pkg.go.dev

# Functions

DecodeMsg attempts to decode the Message content of the given WebSocketMessage based on its EventId.
DecodeMsgInt attempts to decode the Message content of the given WebSocketMessage as an int.
DecodeMsgMempool attempts to decode the Message content of the given WebSocketMessage as a mempool message (*exptypes.MempoolShort).
DecodeMsgNewAddressTx attempts to decode the Message content of the given WebSocketMessage as an address message (*DecodeMsgNewAddressTx).
DecodeMsgNewBlock attempts to decode the Message content of the given WebSocketMessage as a newblock message (*exptypes.WebsocketBlock).
DecodeMsgPing attempts to decode the Message content of the given WebSocketMessage ping response message (int).
DecodeMsgString attempts to decode the Message content of the given WebSocketMessage as a string.
DecodeMsgTxList attempts to decode the Message content of the given WebSocketMessage as a newtxs message (*pstypes.TxList).
DecodeResponseMsg attempts to decode the Message content of the given WebSocketMessage as a request response message (string).
DisableLog disables all library log output.
New creates a new Client from a URL.
NewFromConn creates a new Client from a *websocket.Conn.
UseLogger uses a specified Logger to output package logging info.
Version indicates the semantic version of the pubsub module, to which the psclient belongs.

# Structs

Client wraps a *websocket.Conn.
ClientMessage represents a message for a client connection.
Opts defines the psclient Client options.