websocket

package
v0.0.1-20220721-0001 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(ctx context.Context, instanceName string) (*client.Client, error)

GetClient -> gets the existing created instance if it's already created... if it's not created, then it's being created

func GetConfig

func GetConfig(instanceName string) (config.Config, error)

func GetDefaultClient

func GetDefaultClient() (*client.Client, error)

GetDefaultClient -> it will return a new websocket client instance by taking the default configuration

func New

func New(
	ctx context.Context,
	config config.Config,
) (*client.Client, error)

New -> creates a new client based on the provided configuration

func NewClient

func NewClient(ctx context.Context, instanceName string) (*client.Client, error)

NewClient -> Generates a new instance based on the configuration! Multiple instances can be generated based on the same configuration

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL