broadcast

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WebSocketBroadcasterFactory = BroadcasterFactoryFunc(func() domain.NotificationBroadcaster {
	hub := ws.WebSocketHubFactory.GetHub()
	return NewWebSocketBroadcaster(hub)
})

Functions

This section is empty.

Types

type BroadcasterFactoryFunc

type BroadcasterFactoryFunc func() domain.NotificationBroadcaster

func (BroadcasterFactoryFunc) GetBroadcaster

type WebSocketBroadcaster

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

func NewWebSocketBroadcaster

func NewWebSocketBroadcaster(hub ws.Hub) *WebSocketBroadcaster

func (*WebSocketBroadcaster) Broadcast

func (b *WebSocketBroadcaster) Broadcast(notification domain.Notification)

func (*WebSocketBroadcaster) RegisterClient

func (b *WebSocketBroadcaster) RegisterClient(conn interface{})

Jump to

Keyboard shortcuts

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