Help us shape the future of Go! Take the 2026 Go Developer Survey

wsmanager

package
v1.0.0-rc.40 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindRealtime  = "realtime"
	KindResponses = "responses"
)

Variables

This section is empty.

Functions

func CloseChannel

func CloseChannel(channelID int, reason string) int

func CloseChannels

func CloseChannels(channelIDs []int, reason string) int

func CloseChannelsAndBroadcast

func CloseChannelsAndBroadcast(channelIDs []int, reason string) int

func PublishCloseChannels

func PublishCloseChannels(ctx context.Context, channelIDs []int, reason string) error

func Register

func Register(channelID int, kind string, close func(reason string)) func()

func StartSubscriber

func StartSubscriber(ctx context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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