mirror of
https://github.com/skidoodle/spotify-ws.git
synced 2025-02-15 06:09:14 +01:00
Format
This commit is contained in:
parent
b5fe22bdc0
commit
15cccfcb20
1 changed files with 44 additions and 42 deletions
4
main.go
4
main.go
|
@ -78,7 +78,9 @@ func main() {
|
||||||
// ConnectionHandler upgrades HTTP connections to WebSocket and handles communication with clients
|
// ConnectionHandler upgrades HTTP connections to WebSocket and handles communication with clients
|
||||||
func ConnectionHandler(w http.ResponseWriter, r *http.Request) {
|
func ConnectionHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
ws, err := upgrader.Upgrade(w, r, nil)
|
ws, err := upgrader.Upgrade(w, r, nil)
|
||||||
if err != nil {return}
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
connect <- ws
|
connect <- ws
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue