diff --git a/main.go b/main.go index 558a371..a50e002 100644 --- a/main.go +++ b/main.go @@ -130,6 +130,7 @@ func (this *App) HubWorker(Nick, Pass string, so socketio.Socket, done chan stru case libnmdc.EVENT_CONNECTION_STATE_CHANGED: if hev.StateChange == libnmdc.CONNECTIONSTATE_CONNECTED { + log.Printf("[%s] Connected to hub\n", so.Id()) so.Emit("hello") } else if hev.StateChange == libnmdc.CONNECTIONSTATE_DISCONNECTED { so.Emit("close")