diff options
Diffstat (limited to 'web/websocket/notifier.go')
| -rw-r--r-- | web/websocket/notifier.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/websocket/notifier.go b/web/websocket/notifier.go index cedf56f2..416adaff 100644 --- a/web/websocket/notifier.go +++ b/web/websocket/notifier.go @@ -48,6 +48,14 @@ func BroadcastInbounds(inbounds interface{}) { } } +// BroadcastOutbounds broadcasts outbounds list update to all connected clients +func BroadcastOutbounds(outbounds interface{}) { + hub := GetHub() + if hub != nil { + hub.Broadcast(MessageTypeOutbounds, outbounds) + } +} + // BroadcastNotification broadcasts a system notification to all connected clients func BroadcastNotification(title, message, level string) { hub := GetHub() |
