package
1.0.0
Repository: https://github.com/bytom/bystack.git
Documentation: pkg.go.dev

# Functions

NewWebsocketClient means to create a new object to the connected websocket client.
NewWsNotificationManager returns a new notification manager ready for use.
NewWSRequest creates a request data object.
NewWSResponse creates a return data object.

# Constants

Constants for the type of a notification message.
NTBlockConnected indicates the associated block was connected to the main chain.
NTBlockDisconnected indicates the associated block was disconnected from the main chain.
Constants for the type of a notification message.

# Variables

ErrWSClientQuit means the websocket client is disconnected.
ErrWSInternal means service handling errors.
ErrWSParse means a request parsing error.

# Structs

WSClient provides an abstraction for handling a websocket client.
WSNotificationManager is a connection and notification manager used for websockets.
WSRequest means the data structure of the request.
WSResponse means the returned data structure.

# Type aliases

NotificationType represents the type of a notification message.