Always call the connect handler before any message handler.

This commit is contained in:
Heikki Uljas
2016-01-14 14:55:49 +02:00
parent cf8236b938
commit 46e5343829
+1 -1
View File
@@ -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()