mirror of
https://github.com/skidoodle/spotify-ws
synced 2025-10-09 05:22:43 +02:00
Format
This commit is contained in:
4
main.go
4
main.go
@@ -78,7 +78,9 @@ func main() {
|
||||
// ConnectionHandler upgrades HTTP connections to WebSocket and handles communication with clients
|
||||
func ConnectionHandler(w http.ResponseWriter, r *http.Request) {
|
||||
ws, err := upgrader.Upgrade(w, r, nil)
|
||||
if err != nil {return}
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
connect <- ws
|
||||
|
||||
defer func() {
|
||||
|
Reference in New Issue
Block a user