package
0.1.20
Repository: https://github.com/hyperledger/firefly-common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
InitConfig ensures the config is initialized for HTTP too, as WS and HTTP can share the same tree of configuration (and all the HTTP options apply to the initial upgrade).
No description provided by the author
NewTestWSServer creates a little test server for packages (including wsclient itself) to use in unit tests.

# Constants

WSConfigHeartbeatInterval is the frequency of ping/pong requests, and also used for the timeout to receive a response to the heartbeat.
WSConfigKeyInitialConnectAttempts sets how many times the websocket should attempt to connect on startup, before failing (after initial connection, retry is indefinite).
WSConfigKeyPath if set will define the path to connect to - allows sharing of the same URL between HTTP and WebSocket connection info.
WSConfigKeyReadBufferSize is the read buffer size.
WSConfigKeyWriteBufferSize is the write buffer size.
WSSpecificConfPrefix is the named sub-section of the http config options that contains websocket specific config.

# Structs

No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

WSPostConnectHandler will be called after every connect/reconnect.
WSPreConnectHandler will be called before every connect/reconnect.