refactor: rename HandleConnections to HandleConnection
- rename function to better reflect its purpose
🤖
This commit is contained in:
parent
b8823acc97
commit
cb1ef6c897
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ var upgrader = websocket.Upgrader{
|
|||
CheckOrigin: func(r *http.Request) bool { return true },
|
||||
}
|
||||
|
||||
// HandleConnections upgrades HTTP requests to WebSocket connections and manages the client lifecycle.
|
||||
func HandleConnections(w http.ResponseWriter, r *http.Request) {
|
||||
// HandleConnection upgrades HTTP requests to WebSocket connections and manages the client lifecycle.
|
||||
func HandleConnection(w http.ResponseWriter, r *http.Request) {
|
||||
// Upgrade initial GET request to a WebSocket
|
||||
ws, err := upgrader.Upgrade(w, r, nil)
|
||||
if err != nil {
|
Loading…
Reference in a new issue