server: add log message on successful upstream connection
This commit is contained in:
parent
edffaac74b
commit
ade4439f92
1
main.go
1
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")
|
||||
|
Loading…
Reference in New Issue
Block a user