added debug log for established realtime connection
This commit is contained in:
parent
686198a22e
commit
9e3b230c8e
|
@ -58,6 +58,10 @@ func (api *realtimeApi) connect(c echo.Context) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if api.app.IsDebug() {
|
||||||
|
log.Printf("Realtime connection establisehd: %s\n", client.Id())
|
||||||
|
}
|
||||||
|
|
||||||
// signalize established connection (aka. fire "connect" message)
|
// signalize established connection (aka. fire "connect" message)
|
||||||
fmt.Fprint(c.Response(), "id:"+client.Id()+"\n")
|
fmt.Fprint(c.Response(), "id:"+client.Id()+"\n")
|
||||||
fmt.Fprint(c.Response(), "event:PB_CONNECT\n")
|
fmt.Fprint(c.Response(), "event:PB_CONNECT\n")
|
||||||
|
|
Loading…
Reference in New Issue