ws

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

func NewHub

func NewHub(authHandler *auth.AuthHandler, ct *controller.Controller) *Hub

func (*Hub) Broadcast

func (t *Hub) Broadcast(event Event[any]) error

func (*Hub) BroadcastScoped

func (t *Hub) BroadcastScoped(event Event[any], userIDs []string) error

func (*Hub) Upgrade

func (t *Hub) Upgrade(ctx *routing.Context) error

Jump to

Keyboard shortcuts

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