mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-27 15:30:24 +01:00
added debug log for established realtime connection
This commit is contained in:
1 parent
686198a22e
commit
9e3b230c8e
1 file changed
+4
@@ -58,6 +58,10 @@ func (api *realtimeApi) connect(c echo.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if api.app.IsDebug() {
|
||||
log.Printf("Realtime connection establisehd: %s\n", client.Id())
|
||||
}
|
||||
|
||||
// signalize established connection (aka. fire "connect" message)
|
||||
fmt.Fprint(c.Response(), "id:"+client.Id()+"\n")
|
||||
fmt.Fprint(c.Response(), "event:PB_CONNECT\n")
|
||||
|
||||
Reference in new issue
Block a user