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 ¶
func (f BroadcasterFactoryFunc) GetBroadcaster() domain.NotificationBroadcaster
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{})
Click to show internal directories.
Click to hide internal directories.