Browse Source

Always call the connect handler before any message handler.

master
Heikki Uljas 9 years ago
parent
commit
46e5343829
  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