You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-26 08:01:37 +02:00
added debug log for established realtime connection
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user