websocket

package
v0.6.39 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	Publish(id string, kick bool)
}

type Socket

type Socket interface {
	AddPublisher(event string, publisher Publisher)
	Join() error
	Close() error
}

func New

func New(clusterID, consoleURL, deployToken string) (Socket, error)

func NewClosed

func NewClosed(clusterID, consoleURL, deployToken string) (Socket, error)

NewClosed creates a socket that starts in closed state and does not open a websocket connection until Join() is called.

Jump to

Keyboard shortcuts

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