Clarify in routes and names that it is chat clients being returned

This commit is contained in:
Gabe Kangas
2021-07-21 17:19:15 -07:00
parent 5f322c84f6
commit 2cf761a3f1
3 changed files with 9 additions and 9 deletions

View File

@@ -9,8 +9,8 @@ import (
"github.com/owncast/owncast/core/user"
)
// GetConnectedClients returns currently connected clients.
func GetConnectedClients(w http.ResponseWriter, r *http.Request) {
// GetConnectedChatClients returns currently connected clients.
func GetConnectedChatClients(w http.ResponseWriter, r *http.Request) {
clients := chat.GetClients()
w.Header().Set("Content-Type", "application/json")
@@ -19,7 +19,7 @@ func GetConnectedClients(w http.ResponseWriter, r *http.Request) {
}
}
// ExternalGetConnectedClients returns currently connected clients.
func ExternalGetConnectedClients(integration user.ExternalAPIUser, w http.ResponseWriter, r *http.Request) {
GetConnectedClients(w, r)
// ExternalGetConnectedChatClients returns currently connected clients.
func ExternalGetConnectedChatClients(integration user.ExternalAPIUser, w http.ResponseWriter, r *http.Request) {
GetConnectedChatClients(w, r)
}