Publish Docker image (Multi-arch) / Build & push (amd64) (push) Failing after 1m40s
Release (Linux, macOS, Windows) / Linux Release (push) Failing after 42m16s
Publish Docker image (Multi-arch) / Build & push (arm64) (push) Canceled after 0s
Release (Linux, macOS, Windows) / macOS Release (push) Canceled after 0s
Release (Linux, macOS, Windows) / Windows Release (push) Canceled after 0s
Publish Docker image (Multi-arch) / Create multi-arch manifests (push) Canceled after 0s
Sync production source including routing, billing, Astra detection and public uptime. Update custom build instructions and license packaging.
14 lines
427 B
Go
14 lines
427 B
Go
package service
|
|
|
|
import "github.com/QuantumNous/new-api/pkg/wsmanager"
|
|
|
|
const ChannelDisabledCloseReason = "channel disabled or deleted"
|
|
|
|
func CloseActiveWebSocketsForChannel(channelID int, reason string) int {
|
|
return wsmanager.CloseChannelsAndBroadcast([]int{channelID}, reason)
|
|
}
|
|
|
|
func CloseActiveWebSocketsForChannels(channelIDs []int, reason string) int {
|
|
return wsmanager.CloseChannelsAndBroadcast(channelIDs, reason)
|
|
}
|