ws

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlueColor = color.New(color.FgBlue).SprintfFunc()
View Source
var GreenColor = color.New(color.FgGreen).SprintfFunc()

Functions

func BasicAuth added in v0.0.6

func BasicAuth(auth string) string

func Connect

func Connect() (*websocket.Conn, CloseFunc, ReaderFunc, error)

func GetTLSConfig added in v0.0.6

func GetTLSConfig() *tls.Config

func PingWorker added in v0.0.6

func PingWorker(c *websocket.Conn)

func WriteToServer

func WriteToServer(conn *websocket.Conn, mt int, message []byte)

Types

type CloseFunc added in v0.0.6

type CloseFunc func()

type ReaderFunc added in v0.0.6

type ReaderFunc func(*websocket.Conn)

Jump to

Keyboard shortcuts

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