From 9e3b230c8ef81ba24ebfd0207931ba8ce4d94e0d Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Thu, 28 Jul 2022 08:26:05 +0300 Subject: [PATCH] added debug log for established realtime connection --- apis/realtime.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/realtime.go b/apis/realtime.go index c08d23c2..6023ccde 100644 --- a/apis/realtime.go +++ b/apis/realtime.go @@ -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")