Skip to content

Commit

Permalink
fixing authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
purehyperbole committed Jun 5, 2018
1 parent d4af507 commit 4f75b57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
if err != nil {
return
}

authorized = true
} else {
msg := <-ch
err := c.WriteMessage(websocket.TextMessage, msg.Data)
Expand Down

0 comments on commit 4f75b57

Please sign in to comment.