You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We removed those additional payloads, and everything seems to be working fine at initial look:
No access token sent with every heartbeat (gets rid of 2 extra messages per minute per each connection, much larger payloads than the heartbeats themselves)
If access token hasn't changed – skip the message.event === "access_token" (gets rid of 1 extra message per each page view)
this is the expected behaviour, this are not accounted for for you total messages and if they don't change our server just ignores the message so this is low impact on client and server.
could you provide more information why could be a bigger concern?
Bug report
Describe the bug
Each setAuth call sends a new access_token payload (all good):
realtime-js/src/RealtimeClient.ts
Lines 337 to 347 in 82e9966
Each sendHeartBeat call calls setAuth (even if accessToken hasn't changeD), which results in a lot of unnecessary messages being sent:
realtime-js/src/RealtimeClient.ts
Lines 553 to 574 in 82e9966
Also, each call to join a channel triggers new call to access_token, even though the accessToken is also sent with the
phx_join
event already.Are we being charged for all these unnecessary messages being sent?
The text was updated successfully, but these errors were encountered: