Browse Source

Merge pull request #1 from huljas/fix_concurrency

Call the connect handler before any message handler
master
Heikki Uljas 9 years ago
parent
commit
0d8427cd96
  1. 2
      melody.go

2
melody.go

@ -88,7 +88,7 @@ func (m *Melody) HandleRequest(w http.ResponseWriter, r *http.Request) {
m.hub.register <- session
go m.connectHandler(session)
m.connectHandler(session)
go session.writePump()

Loading…
Cancel
Save