feat: sync deployed v1.0.0-rc.38-custom.42
Sync production source including routing, billing, Astra detection and public uptime. Update custom build instructions and license packaging.
This commit is contained in:
1 parent
aa6c3f50f4
commit
ceddfd3d6b
828 files changed
+122253
-13702
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in new issue
Block a user