//
pkg.gl
Category
github.com/gsmcwhirter/discord-bot-lib/v24
wsclient
package
24.0.0
Repository:
https://github.com/gsmcwhirter/discord-bot-lib.git
Documentation:
pkg.go.dev
Overview
Versions
18
Dependencies
16
Dependents
0
Files
379 SLOC
#
Functions
NewWSClient
NewWSClient creates a new WSClient.
WrapDialer
WrapDialer will wrap a *websocket.Dialer so it conforms to this package's interface.
#
Structs
Options
Options enables setting up a WSClient with the desired connection settings.
WSClient
WSClient is a websocket client.
#
Interfaces
Conn
Conn is the interface for a *websocket.Conn as used in this wrapper package.
Dialer
Dialer is the interface for a *websocket.Dialer as used in this wrapper package.
Logger
Logger is the interface expected for logging.